Hi...I have a query that when executed, it asks the user for an ID (number). If the user enters a admin ID, the query will return ALL records, and if the user enters a non-admin ID, the query returns only those records tied to that ID entered. I'm not sure why this logic isn't working. Any thoughts?
=IIf([Forms]![Startup]![CurrentUser]=2541,like "*",[Forms]![Startup]![CurrentUser] )
Note: 2541 is a ADMIN ID.
=IIf([Forms]![Startup]![CurrentUser]=2541,like "*",[Forms]![Startup]![CurrentUser] )
Note: 2541 is a ADMIN ID.