I am trying to add a report to an existing database. I use access for mostly Data Conversion so I am not familiar with the report section. I am trying to copy a report, but use a different field for criteria.
I copied the existing report that uses the same fields, but different parameters. I also copied the query and chose the department field as the new field for criteria (This is what the report is pulling it's data from).
The original report uses a form to receive the parameters from the user and macros are used to initiate the the form. It is based of a query. So I created a form for the department parameter and created new macros for the new form and copied the query changing the criteria parameter to department number.
The form works fine and is a drop down list of department numbers. For the most part the macros work fine, such as OK and Cancel. But when clicking OK. It is supposed to take the Department number and use the SetValue function to use in the report. That does not work. The report comes up blank.
My query however does work when not using the form. I get the generic pop-up asking me for the department number. I type it in a the query shows all records for that dept.
What am I doing wrong?? I am lost.
Much appreciation for any advice!!
Nsohenick
I copied the existing report that uses the same fields, but different parameters. I also copied the query and chose the department field as the new field for criteria (This is what the report is pulling it's data from).
The original report uses a form to receive the parameters from the user and macros are used to initiate the the form. It is based of a query. So I created a form for the department parameter and created new macros for the new form and copied the query changing the criteria parameter to department number.
The form works fine and is a drop down list of department numbers. For the most part the macros work fine, such as OK and Cancel. But when clicking OK. It is supposed to take the Department number and use the SetValue function to use in the report. That does not work. The report comes up blank.
My query however does work when not using the form. I get the generic pop-up asking me for the department number. I type it in a the query shows all records for that dept.
What am I doing wrong?? I am lost.
Much appreciation for any advice!!
Nsohenick