B
BruceNorris
Access 2002
I'm an Excel coder and have inherited an Access db. It has a
switchboard with buttons that successfully print single reports. I now
want to create one button that prints all those reports with just one
click. Is that possible? With the switchboard manager, I added a button
and set the command as OpenReport, but it seemed I could enter only one
report name, am I seeing that correctly?
Assuming that's correct, I guessed I have to write a macro and have the
button run that code, is that right? If so, should I set the
switchboard button to RunMacro or RunCode? What's the difference? And
where should I write the code in a new module, enter it as a macro, or
write it in with the switchboard code? -confused.
I thought the code would be simple like this, right?
Sub RunBfrRpts()
DoCmd.OpenReport "rpt001", acViewNormal
DoCmd.OpenReport "rpt002", acViewNormal
DoCmd.OpenReport "rpt003", acViewNormal
End Sub
Anyway, could someone point me in the right direction?
Thanks,
Bruce
I'm an Excel coder and have inherited an Access db. It has a
switchboard with buttons that successfully print single reports. I now
want to create one button that prints all those reports with just one
click. Is that possible? With the switchboard manager, I added a button
and set the command as OpenReport, but it seemed I could enter only one
report name, am I seeing that correctly?
Assuming that's correct, I guessed I have to write a macro and have the
button run that code, is that right? If so, should I set the
switchboard button to RunMacro or RunCode? What's the difference? And
where should I write the code in a new module, enter it as a macro, or
write it in with the switchboard code? -confused.
I thought the code would be simple like this, right?
Sub RunBfrRpts()
DoCmd.OpenReport "rpt001", acViewNormal
DoCmd.OpenReport "rpt002", acViewNormal
DoCmd.OpenReport "rpt003", acViewNormal
End Sub
Anyway, could someone point me in the right direction?
Thanks,
Bruce