I have a form that allows the users to make multiple selections and type in variables that allow them to do a search. When they click the search button, I build an sql string and use it as the recordsource of a form that opens with their results. On rare occasions the user would like to print out the results of the search as a report. How can I use this string as the record source for the report without retyping the code in the report?
I thought about making the string a public variable, but it is obvious that I do not understand how to do this(no formal training).
I thought about making the string a public variable, but it is obvious that I do not understand how to do this(no formal training).