Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query to provide data based on user access level.

Status
Not open for further replies.

nrugado

Programmer
Dec 10, 2002
42
US
I have a table that has attendance records in it. At this point managers can go in and modify a record from a year ago. We want to lock this down to absences within the last week for management and all records for HR. I have an existing form that uses a date listbox. I am thinking that I can put some criteria in the qry to pull a date range for a manager level and all dates for HR level. Does anyone have any ideas on how to accomplish this in the query. I was trying something along these lines...for the criteria in the date field for the date listbox.

Switch([Forms]![FRM_Security]![SecurityRank]=1,Between Date()-7 And Date(),[Forms]![FRM_Security]![SecurityRank]=2,Date())
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top