not sure if this is possible but here it goes...
I want to be able to use text box(txtsearch) in a form called pickpatients to fill in the parameter and run a query (PatientQuery1) to search patients by last name. Then, take the results of that query and display in a listbox on the form. Finally, select a result from the list box press a cmdbutton and display the result information in a report.
I know this is a lot. I have access 2003. I designed the query which works great. The way my form is now, when i open the form the query parameter box opens and not the form (not a big deal), then the listbox displays the results of the first query. I am stuck here because when I run subsequent searches when the form is open(by clicking cmdsearch) the query results are displayed in a separate query window rather than the listbox. The report viewing completely baffles me. PLEASE HELP!!!![]()
Heres the row source of the listbox:
SELECT [PatientQuery1].[Patient ID], [PatientQuery1].[Medical Records ID], [PatientQuery1].[Last Name], [PatientQuery1].[First Name], [PatientQuery1].[Sex], [PatientQuery1].[Diagnosis Code 1], [PatientQuery1].[Date of Visit] FROM PatientQuery1 ORDER BY [Patient ID];