Form command button to start report wizard?

superblades

New member
Local time
Today, 10:14
Joined
Sep 20, 2006
Messages
9
Hi im trying to find a way of starting the access report wizard from a button on a form, anyone know how to do this?

Thanks

Superblades
 
You can create a custom toolbar, that just contains icon to open a new report. This will start the report wizard.
You can then show / hide the custom toolbar using :
DoCmd.ShowToolbar ("toolbarname"), acToolbarYes (to show) and
DoCmd.ShowToolbar ("toolbarname"), acToolbarNo (to hide)
 
This one is easier and you can put it on your command button:
Code:
DoCmd.RunCommand acCmdNewObjectReport

Or, if you are using a Macro (as opposed to VB Code):

ACTION: RunCommand
COMMAND: NewObjectReport
 
Last edited:

Users who are viewing this thread

Back
Top Bottom