Hi,
First of all open the query in design view and in the criteria of the field you want add a reference to the form text box ex: Forms![Results]![txtResult] (where Results is the form name and txtResult is the text box name). Now just create a button and on click event write the below function:
DoCmd.OpenReport "ResultsReport", acViewPreview (where ResultsReport is the report name), and that is it.
I fyou mean that query is not physically available add the text box reference to the sql query ex:
SELECT Shortcuts.Term
FROM Shortcuts
WHERE (((Shortcuts.Term)=[Forms]![Results]![txtResult]));
Hope this what you were looking for.
Enter your message below
Sign in or Join us (it's free).