Link to home
Start Free TrialLog in
Avatar of ghornet
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.InteropServices.COMException: 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.Connection")
cn.Open(strConn)
      
'=====Form=======
If Len(Request.QueryString("save")) > 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--
ASKER CERTIFIED SOLUTION
Avatar of amit_g
amit_g
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial