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:
  1. Public Sub UpdatecboProductID()
  2.     Adodc1.Recordset.MoveFirst
  3.     Do While Not Adodc1.Recordset.EOF
  4.         cboProductId.AddItem Adodc1.Recordset.Fields("ProductID")
  5.         Adodc1.Recordset.MoveNext
  6.     Loop
  7.     Adodc1.Recordset.MoveFirst
  8. End Sub

it saying this is not defined:

VB Code:
  1. cboProductId

anyone has any ideas?