J
Jeff G
All -
I've modified a module that sends an object in Access 2007. Where my
problem is...on a Form where I'm collecting data to pass through to the
Function, I need to convert the string into a command, if that makes sense.
The command in the module is...
DoCmd.OutputTo OutputType, ItemName, AttachmentType,
"C:\Temp\DatabaseExport\" & AttachmentName & "." & AttachmentExtension
The function is...
EMailAttachment(ItemName As String, OutputType As String, AttachmentName As
String, AttachmentType As String, AttachmentExtension As String,
ReceipientEMail As String, EMailSubject As String, EMailMessage As String)
The problem comes in where the OutputType is being collected as a String
(i.e. "acOutputQuery"), but I need to change it to a command (i.e.
acOutputQuery), basically stripping it of the quotes.
Any help would be greatly appreciated.
Jeff G
I've modified a module that sends an object in Access 2007. Where my
problem is...on a Form where I'm collecting data to pass through to the
Function, I need to convert the string into a command, if that makes sense.
The command in the module is...
DoCmd.OutputTo OutputType, ItemName, AttachmentType,
"C:\Temp\DatabaseExport\" & AttachmentName & "." & AttachmentExtension
The function is...
EMailAttachment(ItemName As String, OutputType As String, AttachmentName As
String, AttachmentType As String, AttachmentExtension As String,
ReceipientEMail As String, EMailSubject As String, EMailMessage As String)
The problem comes in where the OutputType is being collected as a String
(i.e. "acOutputQuery"), but I need to change it to a command (i.e.
acOutputQuery), basically stripping it of the quotes.
Any help would be greatly appreciated.
Jeff G