D
DDBeards
Hello again, I am using a the following command in sub to send out emails.
What I wish to do however is to create varibles so I can either use
"acSendReport" or "acSendNoObject". I would like a second varible to do the
same with the "acFormatsnp" or "". I tried it with by defining the varibles
as:
dim strType as string 'ObjectType
dim strTypeForm as string 'OutputFormat
Working CODE: DoCmd.SendObject acSendReport, "frmtest", acformatsnp,
strToWhom, strCCWhom, , strSubject, strMsgBody, True
Desired Code: DoCmd.SendObject strType, "frmtest", strTypeForm, strToWhom,
strCCWhom, , strSubject, strMsgBody, True
I am sure my problem is with the DIM statments, but can someone please tell
me a way to solve this one. Thanks
What I wish to do however is to create varibles so I can either use
"acSendReport" or "acSendNoObject". I would like a second varible to do the
same with the "acFormatsnp" or "". I tried it with by defining the varibles
as:
dim strType as string 'ObjectType
dim strTypeForm as string 'OutputFormat
Working CODE: DoCmd.SendObject acSendReport, "frmtest", acformatsnp,
strToWhom, strCCWhom, , strSubject, strMsgBody, True
Desired Code: DoCmd.SendObject strType, "frmtest", strTypeForm, strToWhom,
strCCWhom, , strSubject, strMsgBody, True
I am sure my problem is with the DIM statments, but can someone please tell
me a way to solve this one. Thanks