Hello, Please Help!
I have a form With A button on It: Here Is The Code
On Error GoTo Err_Preview_Click
Dim stDocName As String
DoCmd.Close
stDocName = "DATA"
DoCmd.OpenReport stDocName, acPreview
Exit_Preview_Click:
Exit Sub
Err_Preview_Click:
MsgBox Err.Description
Resume Exit_Preview_Click
As you see being clicked the button a Report "DATA" will be opened.
How to change reports by selecting (If I have some)
I need some kind of selector which will open the report which I'll select
Thank You!
I have a form With A button on It: Here Is The Code
On Error GoTo Err_Preview_Click
Dim stDocName As String
DoCmd.Close
stDocName = "DATA"
DoCmd.OpenReport stDocName, acPreview
Exit_Preview_Click:
Exit Sub
Err_Preview_Click:
MsgBox Err.Description
Resume Exit_Preview_Click
As you see being clicked the button a Report "DATA" will be opened.
How to change reports by selecting (If I have some)
I need some kind of selector which will open the report which I'll select
Thank You!