I am trying to run this code but getting a run time error 94 - null value - when it shouldn't be.
I am thinking I have written the Dlookup incorrectly?
Note ProductID in an integer
How can I diagnose this or what could the solution be?
thanks
I am thinking I have written the Dlookup incorrectly?
Code:
Private Sub txtProductName_Click()
Dim iProdType As Integer
Dim ProductID As Integer
iProdType = DLookup("ProductTypeID", "tblProduct", "ProductID" = Forms![frmBooking]![cboProductID].[Value])
Note ProductID in an integer
How can I diagnose this or what could the solution be?
thanks