#12001/11/11 2:17:15
Set conn=Server.CreateObject("ADODB.Connection")
param = "driver={Microsoft Access Driver (*.mdb)}"
conn.Open param & ";dbq=" & Server.MapPath("admin.mdb")
Set rs=Server.CreateObject("ADODB.Recordset")
sqlstr="select * from photo where = coffee"
rs.open sqlstr,conn,1,3
出现:
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e14'
[Microsoft][ODBC Microsoft Access Driver] 语法错误 (操作符丢失) 在查询表达式 '= 'coffee'' 中。