scriptblur
09-26-2002, 03:53 AM
Hi guys.... can anyone please kindly help me???
i got a problem: the problem is that i can't update my database
(microsoft access) using a sql statement.
Can someone help me to see what wrong with this statement?
Thank a lot...
<% @ Language=VBScript %>
<% Option Explicit %>
<%
Dim conn,rs,sql
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open(Server.Mappath("Login.mdb"))
set rs=Server.CreateObject("ADODB.Recordset")
sql = "UPDATE TheZone SET School='"&Request.Form("departments")&"', Purpose='"&Request.Form("message")&"' WHERE Week='"&Request.Form("weeks")&"' AND Day='"&Request.Form("days")&"' AND Zones='"&Request.Form("location")&"'"
rs.Open sql, conn
Response.Redirect"approved_page.asp"
%>:confused:
i got a problem: the problem is that i can't update my database
(microsoft access) using a sql statement.
Can someone help me to see what wrong with this statement?
Thank a lot...
<% @ Language=VBScript %>
<% Option Explicit %>
<%
Dim conn,rs,sql
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open(Server.Mappath("Login.mdb"))
set rs=Server.CreateObject("ADODB.Recordset")
sql = "UPDATE TheZone SET School='"&Request.Form("departments")&"', Purpose='"&Request.Form("message")&"' WHERE Week='"&Request.Form("weeks")&"' AND Day='"&Request.Form("days")&"' AND Zones='"&Request.Form("location")&"'"
rs.Open sql, conn
Response.Redirect"approved_page.asp"
%>:confused: