I have an Access project in which the main form is based on a view. The WHERE clause in the view needs to equate the value of a table field to the value of a combobox on the form. In the script that creates the view, I get a syntax error when the clause is:
WHERE Acct = [Forms]![frmMain]![cboAcct]
When I changed the clause to:
WHERE Acct = Me.cboAcct
I got no syntax error, but I got an error when I tried to run the script.
How should I code the script so I can create the view?
WHERE Acct = [Forms]![frmMain]![cboAcct]
When I changed the clause to:
WHERE Acct = Me.cboAcct
I got no syntax error, but I got an error when I tried to run the script.
How should I code the script so I can create the view?