G
Guest
I hope I can explain this correctly. I have a query that has a Date Entered
field. The criteria for date entered is [date], so that when you run the
query you will be prompted for the date. That works. I created a macro to
call the query, export to a text file, then print a report. That works.
My problem is that I don't know how to pass the [date] from the query off to
the report. I can't use the query as the record source in my report because
it does not have the same fields as my query contains. I cannot add the
fields on the report to the query because I don't want the fields from the
report to be exported to my text file. Is there some way for me to pass that
[date] from the query to the report? Also, is there a better way to do this
than what I am trying?
Thanks!
field. The criteria for date entered is [date], so that when you run the
query you will be prompted for the date. That works. I created a macro to
call the query, export to a text file, then print a report. That works.
My problem is that I don't know how to pass the [date] from the query off to
the report. I can't use the query as the record source in my report because
it does not have the same fields as my query contains. I cannot add the
fields on the report to the query because I don't want the fields from the
report to be exported to my text file. Is there some way for me to pass that
[date] from the query to the report? Also, is there a better way to do this
than what I am trying?
Thanks!