I am opening a form and trying to fill it with data using a query that contains a global variable. This causes an alert box to pop up, prompting me to fill it with a value because the syntax is wrong somehow obviously. The table is staff and currentStaffMember is the global variable. This code is in a query.
Here is the code:
SELECT *
FROM Staff
WHERE EmployeeID = currentStaffMember;
https://imagebin.ca/v/3Z7LERXZNvnk (image showing record source)
https://imagebin.ca/v/3Z7Lhn9BnJzl (image showing query)