If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Mail Merge

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-03-03, 13:02
Wheelz Wheelz is offline
Registered User
 
Join Date: Dec 2003
Location: Sheffield, UK
Posts: 17
Unhappy Mail Merge

Hi All,

I have an access database which takes data from the tables and mail merges it into a word document and saves the resultant doc file.

Can someone tell me how I can run the vba module in access which does this from an ASP page?

Thanks
Reply With Quote
  #2 (permalink)  
Old 12-03-03, 16:46
sivaroo sivaroo is offline
Registered User
 
Join Date: Nov 2003
Posts: 76
why don't you write the whole thing dynamically in asp and let user put any text they want to. All you have to do is bring up sending info from access.
It makes it easier IMO.
Reply With Quote
  #3 (permalink)  
Old 12-03-03, 17:06
Wheelz Wheelz is offline
Registered User
 
Join Date: Dec 2003
Location: Sheffield, UK
Posts: 17
Its a large 5 page document, which they fill in online and is input into an access database for storage. Then this is merged into a word document and emailed to them for reference.

I think the way around it I have found it to call a macro which calls the script in access, but I'm still having problems. The script is below

<%
Set objAccess = Server.CreateObject("Access.Application")
objAccess.Visible = False
objAccess.OpenCurrentDatabase "F:\websites\ledburyremovalsltd.co.uk\_wibble\Ledb urynet.mdb"
Set objDb = objAccess.CurrentDb()
macroname = "mroMailMerge"
objDb.DoCmd****nMacro macroname
set objDb = nothing
objAccess.Quit acQuitSaveNone
Set objAccess = nothing
%>

The path is correct as I have used it elsewhere in the site. But it comes up with an error.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On