I have a form where users are only allowed to see work assignments that belong to them. This is currently accomplished using a join between my employee table and my work assignment table, and a custom defined function that returns the logon id that is currently using the workstation to use as a criteria in the query. The employee table contains the employee's name and their logon id, and the work assignment table contains the employee's name.
This creates a recordset that is not updateable and there are a few fields that I want the employees to be able to edit.
I've used dlookup before to return values but not to use as a filter. I would like to be able to remove the join and just use dlookup as a criteria on the employee's name from the work assignment table but I'm struggling with syntax and I can't find an example on google.
Thanks for your help!