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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating report/query by combobox value 1

Status
Not open for further replies.

ajking

Technical User
Aug 13, 2002
229
this is probably a very newbie question but I have a table (custdat) containing, amongst others: customer names, salesperson names, equipment, date sold
I have created a form with a combobox containing all the salesperson names from another table (sales)and a command button; what I want to do is select a saleperson's name from the combobox and when the cmdbutton is clicked, a report listing the selected saleperson's customers,equipment and date sold, is generated. Any help would be much appreciated.TIA

'Life is what happens to you while you are busy making other plans' John W. Lennon 1940-1980
 
In The query you have created

go to the column "SalesPersonName"

in the Criteria box put Forms!MyFormName!MyComboBoxName

where MyFormName is the naem of your form
MyComboBoxname is the name of the combo box on the form

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Thank you Ken, it worked a treat!
regards
Alan

'Life is what happens to you while you are busy making other plans' John W. Lennon 1940-1980
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top