Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Emailing Access Report with VB6
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

redbrad0
Advanced Member

USA
3725 Posts

Posted - 12 December 2003 :  11:06:09  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
I am trying to email an Access Report with Visual Basic 6 but I am having troubles. Here is a sample code that I am trying to run, does anyone see any problems with it?


Private Sub Command1_Click()
mail_bug
End Sub


Function mail_bug()
On Error GoTo mail_bug_Err

    Set A = CreateObject("Access.Application")
    A.OpenCurrentDatabase ("S:\UV DISPATCH\brad\vb programs\new_invoices\2.0\invoice_data_031212.mdb")
    A.DoCmd.SendObject acSendReport, "Reports_Invoices", "RichTextFormat(*.rtf)", "bwickwire@waggonerstrucking.com", , , "Comment Reports", "Testing1", False



mail_bug_Exit:
    Exit Function

mail_bug_Err:
    MsgBox Error$
    Resume mail_bug_Exit

End Function

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07