Question : Access Form selecting specific records

I have an access database that has a form.  When a certain button on the form is clicked a report prints.  The attached listing is a sample of the form.  I was about to attach the database and saw that it will be made public.  

The user would like to print only those personnel that are within the selected department in the drop down.

If  anyone can answer the question without the database, if not I will have to go through the data to see if there is any confidential information in the tables.

Answer : Access Form selecting specific records

Take the code from {http:#25760172} but replace the name of the combo with Combo12. It changes only one line:

    stCriteria = "DepartmentName = '" & Combo12 & "'"

Basically, this is the crux of the matter; you will recognize {http:#25754264} and {http:#25754286}, variations of the "short answer" to your question.

(°v°)
Random Solutions  
 
programming4us programming4us