S
suwle
Unregistered / Unconfirmed
GUEST, unregistred user!
Set MyConnection=Server.CreateObject("ADODB.Connection")
connstr="DBQ="+server.mappath("grade.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
MyConnection.Open connstr
sql="Select * Into "&Request.Form("s1")&Request.Form("s2")&request.Form("s3")&" From "&Request.Form("s1")&Request.Form("s2")&request.Form("n1")
myconnection.Execute(sql)
Set RS1=Server.CreateObject("ADODB.Recordset")
rs1.Open "select * from "&Request.Form("s1")&Request.Form("s2")&request.Form("s3"),myconnection,,1,2
执行到此的时候出现以下错误
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e14'
[Microsoft][ODBC Microsoft Access 驱动程序] FROM 子句语法错误。
/hecen1.asp, 行12
请各位大侠帮忙,当我
rs1.Open "select * from "&Request.Form("s1")&Request.Form("s2")&request.Form("s3"),myconnection,,1,1
时就可以,也就是我没有权限给我读写的权利,为什么,跟Select * Into 肯定有关系,因为是他生成的
请问有什么解决办法!!!!
connstr="DBQ="+server.mappath("grade.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
MyConnection.Open connstr
sql="Select * Into "&Request.Form("s1")&Request.Form("s2")&request.Form("s3")&" From "&Request.Form("s1")&Request.Form("s2")&request.Form("n1")
myconnection.Execute(sql)
Set RS1=Server.CreateObject("ADODB.Recordset")
rs1.Open "select * from "&Request.Form("s1")&Request.Form("s2")&request.Form("s3"),myconnection,,1,2
执行到此的时候出现以下错误
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e14'
[Microsoft][ODBC Microsoft Access 驱动程序] FROM 子句语法错误。
/hecen1.asp, 行12
请各位大侠帮忙,当我
rs1.Open "select * from "&Request.Form("s1")&Request.Form("s2")&request.Form("s3"),myconnection,,1,1
时就可以,也就是我没有权限给我读写的权利,为什么,跟Select * Into 肯定有关系,因为是他生成的
请问有什么解决办法!!!!