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
Creating a comma separated list as a Function to be used in a Totals/Group By query
vb.net 2.0 winforms - how to detect unsaved data in databound fields?
Error 405 method not allowed when using WebClient()
Script to read and ping default gateway needs an enhancement
C: drive not accessable
Excel table linked into Powerpoint slide
Load picture into image using a recordset
Grouping and SubTotal in Excel 2003
Create a hyperlink in a C# 2005 project to a html page contained in the project
creating an install routine for custom printers and SQL Database