|
-
Jun 11th, 2005, 09:02 AM
#1
Thread Starter
Member
Program doesnt compile because variable not defined?????
Everytime i try and compile the program it gives me an error saying:
compile error:
variable not defined
The piece of code where the error is cumin from is this:
VB Code:
Public Sub UpdatecboProductID()
Adodc1.Recordset.MoveFirst
Do While Not Adodc1.Recordset.EOF
cboProductId.AddItem Adodc1.Recordset.Fields("ProductID")
Adodc1.Recordset.MoveNext
Loop
Adodc1.Recordset.MoveFirst
End Sub
it saying this is not defined:
anyone has any ideas?
-
Jun 11th, 2005, 09:05 AM
#2
Re: Program doesnt compile because variable not defined?????
Is cboProductId supposed to be a ComboBox?
If yes then check that it is on the same from as this code is 
Cheers,
RyanJ
-
Jun 11th, 2005, 09:07 AM
#3
Re: Program doesnt compile because variable not defined?????
is that spelt correctly in relation to the combobox of that name?
pete
-
Jun 11th, 2005, 09:27 AM
#4
Thread Starter
Member
Re: Program doesnt compile because variable not defined?????
Yes, thanx alot, the combo box was on another form.
Thanx for all your help guys
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|