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

Reports Record Set

Status
Not open for further replies.

playsted

Technical User
Jun 10, 2005
5
US
I currently have a form that performs a search; however, I want the record results of the search to be used in a form that I have already made. Is there anyway to easily accomplish this?

Andy
 
You can use the search criteria from your search form to create the SQL then set the form recordsource property to that string.
 
I'm sorry, but I meant a report, not a form that I have already made. Is it done in a similar fashion?
 
I assume your search form has one of more controls (comboBox maybe) that allows you to select the records you want. In the easiest case, let's say you have only one combobox. Simply change your Report recordsource SQL to something like:
SELECT Employee.*
FROM Employee
WHERE (((Employee.Department)=[Forms]![frmSearch]![cboFind]));
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top