Here is the problem:
I have a form where the user selects a value from an unbound list box. The selected value is used to filter records. The results are shown on a second, Main Form. The filter is applied through VB which was generated through a wizard. On the second form, there is a print preview command button which opens a report. When the report opens from the filtered results of the second form, all the records are displayed rather than just the filtered records. How do I make the report show only the filtered results? The record source is from a main table. I cannot copy the filter property from the Main Form to the report, as it changes depending on the selection the user makes on the first form.
1st form (user selects value) >>> 2nd form (Main Form – displays filtered results from user selection) >>> Report (I want it to show just the filtered results, not all the data)
Please bear in mind that I am a novice and quite thick if you answer this. Also, I have tried searching the forum but could not find a solution - this could also be related to my stupidity.
thank you
I have a form where the user selects a value from an unbound list box. The selected value is used to filter records. The results are shown on a second, Main Form. The filter is applied through VB which was generated through a wizard. On the second form, there is a print preview command button which opens a report. When the report opens from the filtered results of the second form, all the records are displayed rather than just the filtered records. How do I make the report show only the filtered results? The record source is from a main table. I cannot copy the filter property from the Main Form to the report, as it changes depending on the selection the user makes on the first form.
1st form (user selects value) >>> 2nd form (Main Form – displays filtered results from user selection) >>> Report (I want it to show just the filtered results, not all the data)
Please bear in mind that I am a novice and quite thick if you answer this. Also, I have tried searching the forum but could not find a solution - this could also be related to my stupidity.
thank you