473,320 Members | 2,083 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Open mail merged document in a form/report

29
Hi, i am trying to open up a document, that is already mailmerged with the correct data (and fields).
I have written the letter, and added the relevant table source, along with the required fields, and it works. once the mail merge button is pressed, then all a letter is developed for all of the related records.

i then tried to open that by putting a command button in a form and a report, and in the form, only the program oopens.

I then tried using a macro, "C:\Program Files\Microsoft Office\OFFICE11\Winword.exe" "C:\Documents and Settings\Masum.SHOKOTH\My Documents\PaymentOverdue.doc" "C:\Documents and Settings\Masum.SHOKOTH\My Documents\ProvidePaymentOverdue".
This opens up the file, but it then says error, and a blank document is opened.

Is it possible to have a button or a link that opens up the document, and is already mail-merged (without the user havin to do it themselves)
and can it be placed inside a report, or will i have to use a form.
Apr 19 '07 #1
2 1282
nico5038
3,080 Expert 2GB
Did you try the Shell command like:

shell ("application and file to be started")

Nic;o)
Apr 23 '07 #2
NeoPa
32,556 Expert Mod 16PB
  • You will need to make sure that the document that you require (IE already merged) is what you open up.
  • It's possible to invoke this from within the module of a report, but I can't think why you'd want to or what you would want to trigger it with.
Apr 26 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Hans | last post by:
Hi! I don't think this is possible but I have a report that is created in XML and transformed to html using XSL. Is it possible to add a link in this report that will mail itself (the report as...
4
by: pmhaupt2 | last post by:
I developed an Access 2003 program that will allow the user to produce a group of Word letters that merge with data records from an Access database. I created a mail merge Word document and...
4
by: lesperancer | last post by:
I have 3 tables (office97) tblQuote quoteNbr tblDetails ( quote : 1 <-> M: quoteDetails) quoteNbr detailLine product value
1
by: mr k | last post by:
Hi, I wanted to use mail merge with forms but Text form fields are not retained during mail merge in Word, I got the code from Microsoft but it doesn't remember the text form field options such as...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.