I have a form with a combo box where i entered certain data in.. i also have a button on the form. What id like to do is that when a certain thing is selected in the combo box, to print preview that corresponding report.
I had some code in the button starting with something similar to:
Where the Macro Report1 opens that report in print preview. The problem with this is that it doesn't open the report.. im pretty sure the bold part of that code is false since i made it up using logic. In fact.. all of it is probably wrong.
Thanks in advance
I had some code in the button starting with something similar to:
If Combo1.Rowsource = ("Report1") Then
Run.Macro ("Report1")
End If
Where the Macro Report1 opens that report in print preview. The problem with this is that it doesn't open the report.. im pretty sure the bold part of that code is false since i made it up using logic. In fact.. all of it is probably wrong.
Thanks in advance