Visual basic 6.0 ,problem of error "object variable or with block variable not set"

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
hi i am sanjay i created a database name "stud" and a table "fee" in it.
table "fee"
attributes: first<span style="white-space:pre second<span style="white-space:pre
third
values:<span style="white-space:pre 200<span style="white-space:pre
250<span style="white-space:pre 300<span style="white-space:pre
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()<br/>
Dim x<br/>
x = Adodc1.Recordset.Fields("second").Value<br/>
Print x<br/>
End Sub<br/>
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

View the full article
 
Back
Top