My query doesnt seem to work

shabbaranks

Registered User.
Local time
Today, 11:25
Joined
Oct 17, 2011
Messages
300
Hi All,

Im trying to create a generic query which will pull data from a table based on the logged in user. I have a module which pulls in the windows username but cant seem to get the query to work - it just pulls in all data from that table. If I use the criteria which is assigned to that field "sUser" it gives me a blank result obviously as there are no users called sUser.

Any ideas?

Thanks
 
You need to put the name of the function in the query:
Code:
WHERE UserName = UserNameFunction()
 
Thanks, worked a treat. :)
 

Users who are viewing this thread

Back
Top Bottom