Send Object Issues

aftershokk

Registered User.
Local time
Today, 17:50
Joined
Sep 5, 2001
Messages
259
I am trying to send a query to 3 e-mail recipients using send object in a macro. I use the TO: line and separate each email with ;

For some reason, it only emails the last email on the list?

I am using Group Wise 6.5

help
 
did you try with different e-mail address' (your sure the other 2 are spelled correctly).

Follow these steps so you can convert the Macro to VBA so we can check the snytax.


with the macro window selected, select the Send macro (but don't open it), go to tools/Macro/Convert Macro to Visual basic)..click convert

The VB window will open, look in the top left window (Project list) Look for "converted Macro...." (with your Macro name)...copy/paste the text to this post....

Should look like...

'------------------------------------------------------------
' send
'
'------------------------------------------------------------
Function send()
On Error GoTo send_Err

DoCmd.SendObject acQuery, "qryTableRef", "MicrosoftExcelBiff8(*.xls)", "ziggy", "", "", "", "", False, ""


send_Exit:
Exit Function

send_Err:
MsgBox Error$
Resume send_Exit

End Function
 

Users who are viewing this thread

Back
Top Bottom