I am trying to run a query and filter it by the current authorized user id in my database.
auth.userid is in a class module that should show the current user id number and for some reason it isn't working. When I try to run the query, the Enter Parameter Value box shows with auth.userid. Is it possible to call these in query criteria's?
Code:
=DLookUp("property","tblwoOption","[userid] = #" & auth.userid & "#")
auth.userid is in a class module that should show the current user id number and for some reason it isn't working. When I try to run the query, the Enter Parameter Value box shows with auth.userid. Is it possible to call these in query criteria's?