Microsoft
Software
Hardware
Network
Question : Form Filter on Load
I have a datasheet form in Access 2007 that I need to filter on load to only return results for the person currently logged in. The form is going to be used to show what items are due in the coming week and be sort of a time management "solution" for staff.
I have a module fsUserName which I found on this site that will return the current user logged in, so what I need to do now is say Where fsUserName = Contacts.Login_Name and apply that filter when the form is loaded.
I am not sure how to write a filter, (or event procedure maybe?) that will give me the results I need.
I would appreciate some guidance! Thanks!
Answer : Form Filter on Load
Didin't notice the problem in youir code before..
Look more closely at what I posted..you have omitted the single quotes.
Me.Filter ="Login_Name='" & fsUserName() & "'"
Random Solutions
Published Access Database to Sharepoint, now what?
My db1 table has a link to db2. Howto use a relative path?
Can I change the default contacts folder in "My Contacts?"
Select Top 5 For Each Group - subquery syntax bug
High read in profile
add multiple machines to sccm collection
Create a Macro from code
cells in linked excel sheet showing up as #NA
Cannot Remote Desktop into Windows 2000 machine
How remove decimal and 2 trailing zeros from multiple values in field