Choosing Destination Report

vdanelia

Registered User.
Local time
Today, 05:17
Joined
Jan 29, 2011
Messages
215
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!
 
Thank You Uncle Gizmo Very Much for the Help!
 

Users who are viewing this thread

Back
Top Bottom