Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access General > Converting A St...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 8 Topic 92510 of 97661
Post > Topic >>

Converting A String To A Command

by "Jeff G" <JGarrison@[EMAIL PROTECTED] > Aug 7, 2008 at 10:25 AM

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\DatabaseEx****t\" & 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
 




 8 Posts in Topic:
Converting A String To A Command
"Jeff G" <JG  2008-08-07 10:25:13 
Re: Converting A String To A Command
"Chris O'C via Acces  2008-08-07 15:37:15 
Re: Converting A String To A Command
"Jeff G" <JG  2008-08-07 12:20:50 
Re: Converting A String To A Command
"Chris O'C via Acces  2008-08-07 16:37:00 
RE: Converting A String To A Command
=?Utf-8?B?S2xhdHV1?= <  2008-08-07 08:37:23 
Re: Converting A String To A Command
"Jeff G" <JG  2008-08-07 12:23:42 
Re: Converting A String To A Command
=?Utf-8?B?S2xhdHV1?= <  2008-08-08 08:40:01 
Re: Converting A String To A Command
Stefan Hoffmann <stefa  2008-08-11 11:36:55 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Dec 4 22:09:24 CST 2008.