I have created a query which queries another query. The information is then used to generate a report. All the information gets posted on the report and is working great. Here is the problem: I have also created a form which asks the user to choose a CROP (this is the criteria I would like to use for the query). I then have a command button that has the following code:
On Click
DoCmd.Openreport "reportname", acnormal,acpreview.
The report uses the query as its data source. When I select a crop on the form and hit the command button to run the report I get a runtime error message saying that it can't find input table 2. Any ideals how I can get this to work?
On Click
DoCmd.Openreport "reportname", acnormal,acpreview.
The report uses the query as its data source. When I select a crop on the form and hit the command button to run the report I get a runtime error message saying that it can't find input table 2. Any ideals how I can get this to work?