Question : Trying to do report or query based on value in field. Using Access 2003

Hi,
I have 3 tables . EmployeeList with Name, Addess etc as fields. Worktime with Name , hours.rate and date. Worktime name field is populated thru drop down list from EmployeeList. Name. I have a query based on Worktime and extra calculated Fields. What Im trying to do is make it so that from a drop down based on EmployeeList.Name  I can bring up (either in query or report) all info for the name selected and only the nae selected. This is driving me bloody crazy. I cant seem to reference the input value properly . I need something along lines of where input value = name value select all records with name value ?

TIA.

Answer : Trying to do report or query based on value in field. Using Access 2003

Now you are missing a comma after acViewPreview...

DoCmd.OpenReport "Report1", acViewPreview, , "Employee_name = '" & List0.Value & "'"
Random Solutions  
 
programming4us programming4us