I have a form based on a query. The query populates a combo box and when a name is selected from the combo box it updates the value in a text box on the form with the ID number of the record selected. The value in the combo box is created from this expression: Expr1: [Contacts]![First Name] & " " & [Contacts]![Middle Name] & " " & [Contacts]![Last Name]
After the user selects a value from the combo box, they click a Next button which uses a macro to open another form with the record corresponding to the first forms IDNumber. This is the where statement used in the macro: ="[IDNumber]=" & [Forms]![frmSelectContact]![IDNumber]
If I open that first form manually it works fine opening up the second form to the correct record. If I open the first form from my switchboard form that is not based on any table or query it give me the following error: Syntax Error (Missing Operator) in query expression '[IDNumber]='
I'm not sure why it works one way and not the other way. Any ideas?
Thanks
After the user selects a value from the combo box, they click a Next button which uses a macro to open another form with the record corresponding to the first forms IDNumber. This is the where statement used in the macro: ="[IDNumber]=" & [Forms]![frmSelectContact]![IDNumber]
If I open that first form manually it works fine opening up the second form to the correct record. If I open the first form from my switchboard form that is not based on any table or query it give me the following error: Syntax Error (Missing Operator) in query expression '[IDNumber]='
I'm not sure why it works one way and not the other way. Any ideas?
Thanks