Generally, that kind of message happens when you either have a syntax error, or when you have a parameter that is NULL.
Per these pages:
http://msdn.microsoft.com/en-us/libr.../ff197046.aspx
http://www.fmsinc.com/MicrosoftAcces...endObject.html
This is the format:
Code:
DoCmd.SendObject ObjectType, ObjectName, OutputFormat, To, Cc, Bcc, Subject, MessageText, EditMessage, TemplateFile
So it looks like you may have a missing comma for the BCC parameter:
Code:
DoCmd.SendObject acSendReport, "schedule", formatpdf, strEmail, , , ("" & Me!Subject), ("" & Me!Greeting), ("" & Me!Message)
Also, in this case, I'm not sure what effect the parenthesis around your Subject, Greeting and Message parameters would cause.
Try these two and see if one of them works:
Code:
DoCmd.SendObject acSendReport, "schedule", formatpdf, strEmail, , , "" & Me!Subject, "" & Me!Greeting, "" & Me!Message
DoCmd.SendObject acSendReport, "schedule", formatpdf, strEmail, , , """" & Me!Subject & """", """" & Me!Greeting & """", """" & Me!Message & """"