Hope someone can help with a query expression. I am trying to open a form from a variable set in another form and have the following query set on button click:-
I am getting a missing operator error but the syntax is exactly as shown in Acess 2010 Prigrammers Reference?.
I have Form A with a combo box to list Rooms and I want to open Form B to show records for the Room chosen by Form A. Have captured Me. Variable and this is fine.
Code:
If Not Me.NewRecord Then DoCmd.OpenForm "frmChangeBooking", WhereCondition:="[BookLocation]=" & Me.Room End If
I have Form A with a combo box to list Rooms and I want to open Form B to show records for the Room chosen by Form A. Have captured Me. Variable and this is fine.
Comment