Lanason
Registered User.
- Local time
- Today, 21:19
- Joined
- Sep 12, 2003
- Messages
- 258
here is an odd one ......
this works
DoCmd.SendObject acReport, ReportName, acFormatPDF, SendTo, SendCc, SendBcc, Subject, Message, True, ""
but this doesn't
Dim MailFormat As String
MailFormat = myrec![MailFormat] ' MsgBox MailFormat
DoCmd.SendObject acSendReport, StDocName, MailFormat, MailTo, MailCC, MailBcc, Subject, MailGreeting & " " & MailMessage & " " & MailSignature, True
where I get the format from a table as a variable
error message is that format not available
any ideas :banghead::banghead:
this works
DoCmd.SendObject acReport, ReportName, acFormatPDF, SendTo, SendCc, SendBcc, Subject, Message, True, ""
but this doesn't
Dim MailFormat As String
MailFormat = myrec![MailFormat] ' MsgBox MailFormat
DoCmd.SendObject acSendReport, StDocName, MailFormat, MailTo, MailCC, MailBcc, Subject, MailGreeting & " " & MailMessage & " " & MailSignature, True
where I get the format from a table as a variable
error message is that format not available
any ideas :banghead::banghead: