lawsonbooth
12-14-2009, 01:42 PM
Let me state right from the beginning that I am in over my head when it comes to queries calling queries. Any help would be greatly appreciated. I have read so much my eyes hurt and now I am totally lost. If the answer I need is in the forum please point me to it.
Here is the situation: (I did not create this report.) I am running a report using the “DoCmd.OutputTo” in a VBA module. The report’s data source is a query which is the result of another query with the input date range prompts on the other query. The report is always run for the previous work day. In my VBA module I want to figure the previous day’s date and pass it to the report process so that I can automate the report running without having to enter a date range. How do you pass data to a query prompt in a VBA nodule? Is this even possible?
LawsonBooth:banghead:
Here is the situation: (I did not create this report.) I am running a report using the “DoCmd.OutputTo” in a VBA module. The report’s data source is a query which is the result of another query with the input date range prompts on the other query. The report is always run for the previous work day. In my VBA module I want to figure the previous day’s date and pass it to the report process so that I can automate the report running without having to enter a date range. How do you pass data to a query prompt in a VBA nodule? Is this even possible?
LawsonBooth:banghead: