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
Export Access to Word template
Runtime error 2424 strikes in error
TextBox and Validation Rule
.NET MySQL question
left column thing is gone in FrontPage 2003
Task Sequence question
How do I add an icon to the Add/Remove Programs Property?
Does Office 2003 SP3 include SP1 and SP2 ?
Why don't I have access?
VBA - Access/Excel: Scrolling through files in folder, and archiving