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-space
re second<span style="white-space
re
third
values:<span style="white-space
re 200<span style="white-space
re
250<span style="white-space
re 300<span style="white-space
re
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-space


third
values:<span style="white-space


250<span style="white-space


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