ghornet
asked on
Migrating to ASP.net from ASP Having trouble with rs.open
I am migrating all of my asp pages to aspx everything is going pretty well except for this little snag here
rs.Open(sTable, cn, 2,2) is giving me an error
Exception Details: System.Runtime.InteropServ ices.COMEx ception: The request for procedure 'Productivity' failed because 'Productivity' is a table object.
the code block it is in is as follows
sTable = "[Productivity]"
cn = CreateObject("ADODB.Connec tion")
cn.Open(strConn)
'=====Form=======
If Len(Request.QueryString("s ave")) > 0 Then
rs = Server.CreateObject("ADODB .Recordset ")
rs.Open(sTable, cn,2,2)
rs.addnew
rs("MechanicID") = MchID
rs("Score") = Score
rs("ScoreRight") = scoreright
rs("Per") = per
rs("Date") = myDate
rs("LocationID") = SID
rs("UserID") = UID
rs.Update
rs.close()
that is pretty much it... any ideas?
D--
rs.Open(sTable, cn, 2,2) is giving me an error
Exception Details: System.Runtime.InteropServ
the code block it is in is as follows
sTable = "[Productivity]"
cn = CreateObject("ADODB.Connec
cn.Open(strConn)
'=====Form=======
If Len(Request.QueryString("s
rs = Server.CreateObject("ADODB
rs.Open(sTable, cn,2,2)
rs.addnew
rs("MechanicID") = MchID
rs("Score") = Score
rs("ScoreRight") = scoreright
rs("Per") = per
rs("Date") = myDate
rs("LocationID") = SID
rs("UserID") = UID
rs.Update
rs.close()
that is pretty much it... any ideas?
D--
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.