p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   VB Databases Basics (http://p2p.wrox.com/forumdisplay.php?f=82)
-   -   Run Time Error '91' (http://p2p.wrox.com/showthread.php?t=30355)

derniel June 13th, 2005 03:58 AM

Run Time Error '91'

I'm new in database programming with VB. My SQL table has 3 columns. When I update the content of a cell that meets a criteria, I get the Run Time Error '91', Object Variable or With Block Variable Not Set for the Adodc1 line.

My Code is as follows:

Private Sub CmdUpdate_Click()
     Text1.Text = "5"
     Adodc1.Recordset.Fields("line_no") = Text1.Text
End Sub

Thanks a lot for the help.

lam_lvl July 15th, 2005 12:52 AM

Can you post your full code !?
This error occur in some cases: "line_no" field did not exist in table.
or error in adodc1 object, It have been not created, ....
Check your code carefull again.


All times are GMT -4. The time now is 03:59 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.