Program doesnt compile because variable not defined?????
Everytime i try and compile the program it gives me an error saying:
Quote:
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?
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
Re: Program doesnt compile because variable not defined?????
is that spelt correctly in relation to the combobox of that name?
pete
Re: Program doesnt compile because variable not defined?????
Yes, thanx alot, the combo box was on another form.
Thanx for all your help guys :)