Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 18011
Number of posts: 55384

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
error "91" Posted by sanjaymajoka on 24 Jul 2012 at 8:39 PM
hi i am sanjay i created a database name "stud" and a table "fee" in it.

table "fee"

attributes: first second third
values: 200 250 300
now i set connection string for "stud" and recordset for "fee" which is ok.

i created a form name"form1" . i took a "label1" in it and a "adodc1" control. i wrote coding on form load event as:

Private Sub Form_Load()
Dim x
x = Adodc1.Recordset.Fields("second").Value
Print x
End Sub
I thought it will print value 250 on the form1 at the time of its loading but i got en error "object variable or with block variable not set" error "91"

so please help me



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.