EDN Admin
Well-known member
hi i am sanjay i created a database name "stud" and a table "fee" in it.
table "fee"
attributes: first<span style="white-spacere second<span style="white-spacere
third
values:<span style="white-spacere 200<span style="white-spacere
250<span style="white-spacere 300<span style="white-spacere
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
table "fee"
attributes: first<span style="white-spacere second<span style="white-spacere
third
values:<span style="white-spacere 200<span style="white-spacere
250<span style="white-spacere 300<span style="white-spacere
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