-
Executing an Access Report in DTS ActiveX Script
Hi, my ultimate goal is to convert an Access report to *.rtf format and then email the new file to a mailing list.
I've used Data Transformation Services in SQL before, and I've been successful sending files to mailing lists.
I need help in doing one of the following, which will accomplish my goal:
1. Make an Active X Script that will convert the Access report to *.rtf and save it to the harddisk.
I've tried this code:
Dim objDB
Set objDB = CreateObject("Access.Application")
objDB.OpenCurrentDatabase("c:\Report Path\database.mdb")
objDB.DoCmd.OutputTo acOutputReport, "report name", acFormatRTF, "C:\Dest Name.rtf"
objDB.CloseCurrentDatabase
objDB.Quit
In DTS, I get the error "The Microsoft Jet Database engine couldn't find the object 'Database name'
OR
2. Make an Active X Script that will execute the Access Report.
In this situation, I have used VB to attach the Code to the Access report. This code successfully outputs the report to *.rtf format when the report deactivates. Thus, I need only execute the report through ActiveX or some other means to produce the output file.
The code I use in the actual Access report to output the file is as follows:
DoCmd.OutputTo acOutputReport, "report name", acFormatRTF, "C:\Dest Name.rtf"
Thanks for your replys! Any help is appreciated!
John
Similar Threads
-
By Joey_G in forum Database
Replies: 2
Last Post: 02-18-2005, 09:40 AM
-
By Mike Mitchell in forum .NET
Replies: 60
Last Post: 09-13-2002, 05:41 PM
-
By Sergey in forum Database
Replies: 1
Last Post: 10-12-2001, 12:06 AM
-
By Bob in forum VB Classic
Replies: 5
Last Post: 06-21-2001, 05:37 AM
-
By Calle in forum VB Classic
Replies: 0
Last Post: 08-28-2000, 05:18 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|