problem emailing report with subform

G

Guest

I have an order confirmation that is emailed after the order is entered. I
just added a subform to the Confirmation Report. When I try to send it I get
this message: "The save as command can't process any subforms contained in
your report". This the code I use to send the email:
DoCmd.RunCommand acCmdSaveRecord
DoCmd.SendObject acReport, "rptOrderConfirmation",
"RichTextFormat(*.rtf)", Forms!Orders!Email, "", "", "Order Confirmation",
"Message" I don't have a clue what the problem is.
Thanks for any help on this.
Ron
 
R

Rick Brandt

Ron said:
I have an order confirmation that is emailed after the order is
entered. I just added a subform to the Confirmation Report. When I
try to send it I get this message: "The save as command can't process
any subforms contained in your report". This the code I use to send
the email:
DoCmd.RunCommand acCmdSaveRecord
DoCmd.SendObject acReport, "rptOrderConfirmation",
"RichTextFormat(*.rtf)", Forms!Orders!Email, "", "", "Order
Confirmation", "Message" I don't have a clue what the problem is.
Thanks for any help on this.
Ron

A report should use a subreport, not a subform. Access will let you embed as
subform in a report, but as you have seen not everything works when you do that.
 
G

Guest

OOOPS!

I just created the subreport using the subreport wizard, and got the same
message.
 
G

Guest

I found my answer. All I had to do was open my subform in design mode and do
a Save As> Report. Then I dragged it into my main report . It works fine now.

Thanks
Ron
 

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

Top