Email via Outlook

B

BC

Hello all,
I am trying to send email from access via Outlook.
The routine works great. I would like add attachments. If
I hard code in the attachment path, the attachment works
fine. I would like to interactively add an attachment. I
have added code to do this using the FileDialogue
commands. When I apply the result to the .Add in my code
I get the 'Object doesn'r support this property or
method'.

my code is below:

Set objOutlookAttach = .Attachments.Add("C:\Survey.pdf") -
works fine here
Set objOutlookAttach = .Attachments.Add(ack) - errors here

'Ack' is the string returned from the FileDialogue
routine and that is where the error occurs.

Any help would be appreciated.

BC
 
C

Chadlon

Hi there,

Did you take a look at the returned value ack?
Was it sensible/useful/completely as expected?

How is ack defined? Sounds a bit like a success/fail acknowledgement
variable.
Should you not be looking for / using a path-type variable?
What does the File Dialogue sequence look like?

CD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top