I'm trying to navigate to a record based on a series of combo boxes and a button. The user goes through the combo boxes, first picking a (let's say) Store, then Aisle, then Item. The Item combo box stores the Item's unique ID as its bound column.
My code is as follows:
Code:
Private Sub NavigateButton_Click()
Me.Recordset.Clone.FindFirst "[ItemID] = " & Me![ItemComboBox]
Me.Bookmark = Me.Recordset.Clone.Bookmark '(<-- Don't actually have this in yet, but I will need it)
End Sub
The ItemID field in the ItemTable table is an Autonumber Long Integer. Why am I getting the error "Engine does not recognize 'ItemID' as a valid field name or expression"? How do I fix it?
There are no references within the form to the ItemID directly (no text boxes, hidden fields etc).
Thanks for any input!