Need code to send reports from Switchboard

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have DB where I want to e-mail mulitple reports (about 7) to a single
distribution list. I want to do this via a button on a Switchboard - I click
button and e-mail pops up with reports attached. I can do
this with a single report via a command button on a form, but how do I get
multiple reports to do this from a Switchboard button? I'm thinking that I
need to
create VBA code (I would need serious help here) and attach it to the
Switchboard button (Can this be done?).

Your assistance is invaluable. Thanks in advance.
 
hi
here is code to send mail that i have attached to a button.

Private Sub cmdSendeMail_Click()
On Error GoTo Err_cmdSendeMail_Click
Dim stDocName As String
stDocName = "rptVMDForm"
DoCmd.SendObject acReport, stDocName, "RichTextFormat
(*.rtf)"

Exit_cmdSendeMail_Click:
Exit Sub
Err_cmdSendeMail_Click:
MsgBox Err.Number & Err.Description
Resume Exit_cmdSendeMail_Click
End Sub

look up send object method in help for more info.
 
I understand how the stdocname sets to a single report. How does this send
multiple reports? Thanks for helping.
 
dab1477,
Have you found a solution to this yet? I have the exact same issue and was
hoping you had a solution. If I find one in the mean time I will reply back
to this for you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top