sql problem
i have a code like this;
scity= Request.Form("city")
' DB connection
dim Conn
Set Conn = Server.CreateObject("ADODB.Connection")
sConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & Server.MapPath("blood.mdb") & ";" & _
"Persist Security Info=True"
Conn.Open(sConnection)
' count all records
allrecords = 0
set rs = conn.Execute "SELECT * FROM "& scity
other code is well working ...
but the statement
set rs = conn.Execute "SELECT * FROM "& scity
is giving the error as;
Microsoft VBScript compilation (0x800A0401)
Expected end of statement
/test/donors.asp, line 16, column 22
set rs = conn.Execute "SELECT * FROM "& scity
---------------------^
so i cannot get it.. i need help plz
shri
__________________
shri
|