Is there a way to code a criteria on my query to sort out an alpha split for the user running the report?
On my form the user selects their name in the cboUserName field and selects the report to run. The report is based on a query. Each user has an alpha split in the tblUpdatedEmployees table.
An example would be Paul selects his name, his alpha split in the table is ABC, using the below criteria will filter just these out. The problem is the only way it works is that it will prompt me to enter the alpha split manually when this is run, I can't seem to get it to look at the user selected on the form (frmUpdatedLogin) to select the proper alpha split automatically. Each user has a unique UserID on the tblUpdatedEmployees table but the issue I have is that there are no other like fields between this table and the Scheduler_Sheet table to create a relationship.
I know I can do multiple queries, however I am trying to keep this editable. Is my only option to filter these out on the end result form/report?
Code:
InStr([tblUpdatedEmployees].[Alpha],Left([Scheduler_Sheet].[LastName],1))