473,722 Members | 2,468 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

merging Access query into Word document HELP

Hello, I have a query set up in Access. I run it monthly, changing
"date of test". I would like this query to be merged with a Word
document so that the cover letter is created in Word, the fields from
Access are automatically filled into the Word document. The query
could be anywhere from 0-5000 names, one cover letter per name. AND to
this cover letter for each applicant, there has to be attached a two
page document. How in the world can I do this? I've tried the
suggestions and am still stumped. I truly need step by step
instructions on this one. I know these two programs are awesome and
work well together, the middleperson/me is having operator error
syndrome or something. I need clarity and direction. Thank you.

Feb 15 '07 #1
8 6721
<ba*********@ms n.comwrote in message
news:11******** ************@v4 5g2000cwv.googl egroups.com...
Hello, I have a query set up in Access. I run it monthly, changing
"date of test". I would like this query to be merged with a Word
document so that the cover letter is created in Word, the fields from
Access are automatically filled into the Word document.
The above feature is built into word, and is very easy to do.

The query
could be anywhere from 0-5000 names, one cover letter per name.
Again, the above is not a probem, you can have a word merge use
a query.
AND to
this cover letter for each applicant, there has to be attached a two
page document.
Why not skmply place teh additonal two pages into the docuemt with the
covner letter. That way, you exeicte a merge, and the reulst will be a 3
page doucment.

If there is some type of complex selection logic you leaving out, such as
that two page document is a different document for each user, then you have
a VERY complex software problem to solve, and it is not easy at all.
However, if you can just add the two pages to the cover letter, and use that
for the one monthly merge, then you should be ok.

You can use my super easy word merge here:

http://www.members.shaw.ca/AlbertKal.../msaccess.html

The above will do the first suggestion no problem at all. If that two page
document is to be a different document for each person, then you have a very
complex word merge, it will requite some excellent software development
skills on you part.

So, a bit of clarification on those two extra pages will result in this
being easy to do, or very hard...which camp you fall in right now is not at
all clear with the information you given. The first merge is easy as
pie...the 2nd problem could mean 1000's of dollars in software
development....
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl************* ****@msn.com


Feb 15 '07 #2
On Feb 15, 1:18 pm, "Albert D. Kallal" <PleaseNOOOsPAM mkal...@msn.com >
wrote:
<babyange...@ms n.comwrote in message

news:11******** ************@v4 5g2000cwv.googl egroups.com...
Hello, I have aqueryset up inAccess. I run it monthly, changing
"date of test". I would like thisqueryto be merged with aWord
documentso that the cover letter is created inWord, the fields from
Accessare automatically filledintotheWo rddocument.

The above feature is builtintoword, and is very easy to do.
Thequery
could be anywhere from 0-5000 names, one cover letter per name.

Again, the above is not a probem, you can have awordmergeuse
aquery.
AND to
this cover letter for each applicant, there has to be attached a two
pagedocument.

Why not skmply place teh additonal two pagesintothe docuemt with the
covner letter. That way, you exeicte amerge, and the reulst will be a 3
page doucment.

If there is some type of complex selection logic you leaving out, such as
that two pagedocumentis a differentdocume ntfor each user, then you have
a VERY complex software problem to solve, and it is not easy at all.
However, if you can just add the two pages to the cover letter, and use that
for the one monthlymerge, then you should be ok.

You can use my super easywordmergehe re:

http://www.members.shaw.ca/AlbertKal.../msaccess.html

The above will do the first suggestion no problem at all. If that two pagedocumentis to be a differentdocume ntfor each person, then you have a very
complexwordmerg e, it will requite some excellent software development
skills on you part.

So, a bit of clarification on those two extra pages will result in this
being easy to do, or very hard...which camp you fall in right now is not at
all clear with the information you given. The firstmergeis easy as
pie...the 2nd problem could mean 1000's of dollars in software
development....

--
Albert D. Kallal (AccessMVP)
Edmonton, Alberta Canada
pleaseNOOSpamKa l...@msn.com
Thank you so much Albert for your response to my call for help. My
two page document is the same for all of the applicants. So I take the
easy street on that one. However, when I tried that, the # of pages
allowed in the Access form document Design View, will not allow that
many lines. Is there some way to increase the allowable lines per
page? I did insert a page break so that the form would print 1) cover
page with one individuals name to its own page and 2) the first page
of the 2 page document and 3) the second page of the 2 page
document..its just doesnt work that way.
I dont understand much about Code writing. So your super easy word
merge solution is out of my league at the moment. Ideally, I would
like the two page document to be inclusive of the 1 page cover letter
in an Access form. Whatcha think?

Feb 16 '07 #3
My
two page document is the same for all of the applicants. So I take the
easy street on that one.
Good, my suggestion was to thus include that document part in the word
document. Great...
However, when I tried that, the # of pages
allowed in the Access form document Design View, will not allow that
many lines.
Huh? (as I hear that screeching sound as a car crashes and the glass starts
to break).

If the document is the same for each person, then simply include that
document in the word document. As I said, easy as pie. We only
thus have to merge to a word document, and we are done.

It entirely possible that you are telling me you are holding a rope, but
are leaving out the detail that cow is attached to that rope!!!
Ideally, I would
like the two page document to be inclusive of the 1 page cover letter
in an Access form. Whatcha think?
Well, either you build this all in word, or all in ms-access. I was
under the impression that you were deciding to use word, now
we seem to be using the ms-access report writer. You need
to make a choice here. Since using a pre-made and pre-built
word example such as mine is too difficult, then I can't see
how you would even begin to attempt to use word and
the report writer together (that is MORE difficult to do then
my example which ONLY uses word).

It seems to me that the simple solution is to build a 3
page word document. The 2nd and 3 page is that
"same" information you want, and the cover page
is where the merge fields in word will needed, but
the rest of document is just text..right?

Merging a word document and report document together is highly complex task,
and much more complex then my ready made example (one which you are unable
to use). We really backed into a corner here choice wise here.

Either build the cover page in ms-access. If you need to EXTEND the length
of the report, simply use a sub-report for each part. Drop all 3 reports
into a 4th report as "sub reports'. Drop those parts into the detail section
on the 4th report. Doing this will allow you to have a report as many pages
long as you need...

So, use word, or use the report writer..but, don't try the VERY complex
coding and engineering it takes to merge the two together..
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl************* ****@msn.com
Feb 16 '07 #4
On Feb 16, 11:00 am, "Albert D. Kallal"
<PleaseNOOOsPAM mkal...@msn.com wrote:
My
two pagedocumentis the same for all of the applicants. So I take the
easy street on that one.

Good, my suggestion was to thus include thatdocumentpar t in theworddocument . Great...
However, when I tried that, the # of pages
allowed in theAccessformdo cumentDesign View, will not allow that
many lines.

Huh? (as I hear that screeching sound as a car crashes and the glass starts
to break).

If thedocumentis the same for each person, then simply include thatdocumentin theworddocument . As I said, easy as pie. We only
thus have tomergeto aworddocument, and we are done.

It entirely possible that you are telling me you are holding a rope, but
are leaving out the detail that cow is attached to that rope!!!
Ideally, I would
like the two pagedocumentto be inclusive of the 1 page cover letter
in anAccessform. Whatcha think?

Well, either you build this all inword, or all in ms-access. I was
under the impression that you were deciding to useword, now
we seem to be using the ms-accessreport writer. You need
to make a choice here. Since using a pre-made and pre-builtwordexampl e such as mine is too difficult, then I can't see
how you would even begin to attempt to usewordand
the report writer together (that is MORE difficult to do then
my example which ONLY usesword).

It seems to me that the simple solution is to build a 3
pageworddocumen t. The 2nd and 3 page is that
"same" information you want, and the cover page
is where themergefields inwordwill needed, but
the rest ofdocumentis just text..right?

Merging aworddocumentan d reportdocumentt ogether is highly complex task,
and much more complex then my ready made example (one which you are unable
to use). We really backed into a corner here choice wise here.

Either build the cover page in ms-access. If you need to EXTEND the length
of the report, simply use a sub-report for each part. Drop all 3 reports
into a 4th report as "sub reports'. Drop those parts into the detail section
on the 4th report. Doing this will allow you to have a report as many pages
long as you need...

So, useword, or use the report writer..but, don't try the VERY complex
coding and engineering it takes tomergethe two together..

--
Albert D. Kallal (AccessMVP)
Edmonton, Alberta Canada
pleaseNOOSpamKa l...@msn.com
Thank you again Albert. I apologize for creating conflicting
directions. Ideally, I would prefer to create the entire document in
msAccess. Here's what I have so far at this point...1) an Access table
from which I have queried for specific dates. 2) an Access Form that
produces a cover letter for each of those names produced from the
query. 3) a 2 page Word document which I copied into an Access Form.
With that in mind, what would you recommend? Thank You.

Feb 17 '07 #5
an Access Form that
produces a cover letter for each of those names produced from the
query. 3) a 2 page Word document which I copied into an Access Form.
With that in mind, what would you recommend? Thank You.
It depends on how complex the formatting for the 2nd two pages are, and
how often they change. (I think it would be fairly rude to have a system
in which the developer need be brought in to modify text in what amounts
to a document. So, some clients will take offence to that. (this is the same
as if you had to call Microsoft to make a new letter every time). So, I
would
likely use word in this case, as then you move this text and formatting of
a document OUT of your code (access) application part. This would allow
users of the application to modify the text and formatting of these merge
document, but not have to try and use ms-access to do this type of
formatting (reports are great for data..but, they have NO ABILITY to
format text. Thus I would likely use word.

So, I think the most easy approach is to build your cover page in word,
insert
the merge fields, and the add in the additional two pages. Then use a word
merge.

Your formatting, ease of change of the text, ease of use for users who can
modify the documents for a new merge etc is far better if you use word.

So, just move/make the cover page in word..and then paste in the additional
two pages of text. Save that, and then use a access to word merge....

it really depends on how the text you have needs to be formatted. If the
text
is quite plan, then you can try the sub-report idea I commented about, and
that
will give you the ability to build a "longer" report that looks like 3
pages.

I just think the word approach is far easer. You have this nice easy to use
document that going to look like your final product...it is easer to edit.

And, for purpose of merging, if you use my sample merge code, then you
only have to write about 2 additional lines of code to have the merge occur.
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl************* ****@msn.com
Feb 17 '07 #6
On Feb 17, 8:33 am, "Albert D. Kallal" <PleaseNOOOsPAM mkal...@msn.com >
wrote:
an Access Form that
produces a cover letter for each of those names produced from the
query. 3) a 2 page Word document which I copied into an Access Form.
With that in mind, what would you recommend? Thank You.

It depends on how complex the formatting for the 2nd two pages are, and
how often they change. (I think it would be fairly rude to have a system
in which the developer need be brought in to modify text in what amounts
to a document. So, some clients will take offence to that. (this is the same
as if you had to call Microsoft to make a new letter every time). So, I
would
likely use word in this case, as then you move this text and formatting of
a document OUT of your code (access) application part. This would allow
users of the application to modify the text and formatting of these merge
document, but not have to try and use ms-access to do this type of
formatting (reports are great for data..but, they have NO ABILITY to
format text. Thus I would likely use word.

So, I think the most easy approach is to build your cover page in word,
insert
the merge fields, and the add in the additional two pages. Then use a word
merge.

Your formatting, ease of change of the text, ease of use for users who can
modify the documents for a new merge etc is far better if you use word.

So, just move/make the cover page in word..and then paste in the additional
two pages of text. Save that, and then use a access to word merge....

it really depends on how the text you have needs to be formatted. If the
text
is quite plan, then you can try the sub-report idea I commented about, and
that
will give you the ability to build a "longer" report that looks like 3
pages.

I just think the word approach is far easer. You have this nice easy to use
document that going to look like your final product...it is easer to edit.

And, for purpose of merging, if you use my sample merge code, then you
only have to write about 2 additional lines of code to have the merge occur.

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKa l...@msn.com
Thank You Albert, I could easily create the cover letter in Word, the
two page attachment document is already there. Now I have to merge the
fields from the Access table into the Word cover page document. I do
not know how to write code for Access. Are there directions here on
details of how to merge an Access table with a Word document?
Directions that are user friendly. I appreciate your expertise,
patience, and willingness to help me.

Feb 18 '07 #7
On Feb 18, 11:15 am, "Albert D. Kallal"
<PleaseNOOOsPAM mkal...@msn.com wrote:
You can find the merge example here:http://www.members.shaw.ca/AlbertKal.../msaccess.html

Additional instructions:

http://www.members.shaw.ca/AlbertKal...rge/index.html
andhttp://www.members.sha w.ca/AlbertKallal/wordmerge/page2.html
andhttp://www.members.sha w.ca/AlbertKallal/wordmerge/Details.htm

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKa l...@msn.com
Thanks again Albert. I am printing this information right now.

Feb 19 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
479
by: di | last post by:
I have a Access Database, and I would like to create a word document that (preferable would filter)links to ACCESS table or query. I would like to print the word document on the filtered record that I have selected in Access. for example if I have customer number (201) that I would like to merge over to a Word document. The word document is a template that I would like to use regularly. Thanks so Much for anyone that can WALK me thru...
8
3535
by: Mike MacSween | last post by:
tblCourses one to many to tblEvents. A course may have an intro workshop (a type of event), a mid course workshop, a final exam. Or any combination. Or something different in the future. At the moment the printed output is usually going to Word. It's turning into an unholy mess, because I'm having to prepare umpteen different Word templates, and the queries that drive them, depending on what events a course has.
5
4040
by: Jerry Hull | last post by:
I'm working with a database developed by an untrained person over several years - and on a network that has recently been upgraded with a new server installed and MS office upgraded from 2K (I think - it might have been XP) to 2003. The database is impressive, both in what it does and the obtuse and inconsistent ways it works. There are several hundred queries, for example, with no indication of where they are used or if they are in fact...
1
4959
by: svdh | last post by:
I have posed a question last saturday and have advanced alot in the meantime. But I am still not there Problem is that I try to merging various fields from various tables in one document in Word 1. Query..I want to keep the fields seperatred. I do not want to sent on field with all accumulated languages from one person to Word. Each language should appear in the document in a separate cell Cross tables are not delivering the result I...
3
5584
by: Andy Davis | last post by:
I have set up a mail merge document in Word 2003 which gets its data from my Access 2000 database. I want to set up a button on a form that: 1. runs the query to provide the dat for the merge document in Word; 2. opens the document and runs the merge process for the new data. I have managed to write the code to perform step 1 ok, but I'm having trouble with step 2. It opens the word document fine but does not perform the mail merge of...
0
2181
by: Linda Cacina | last post by:
Hello all you fine folks, Here is some code I am using to merge data from a single record Access 2K3 table into a NEW word document based on a pre-defined Word merge template doc. All I want to happen is as follows: User defines a storage path and name for the new Word document then clicks a "Create" button on a form. From that point on I use the following code:
0
482
by: babyangel43 | last post by:
Hello, I have a query set up in Access. I run it monthly, changing "date of test". I would like this query to be merged with a Word document so that the cover letter is created in Word, the fields from Access are automatically filled into the Word document. The query could be anywhere from 0-5000 names, one cover letter per name. AND to this cover letter for each applicant, there has to be attached a two page document. How in the world can...
7
1889
by: phillyon | last post by:
I'm looking to print off a booking form based on the data in 3 linked tables by merging it in Word. Please if you know of a better way, let me know. Bookings table contains summary, cost, breakdown of cost, booking id, client id Clients table contains clientid, name, address, phone Sessions table contains date, time, activity, booking id So one client books many sessions through one booking. I can make a query that can be easily...
2
4949
by: mburns | last post by:
Hello all- I was wondering if it is possible to link an Access query or table to a Word document and pull specific information into Word by manually entering a unique identifier, which would then pull all related fields from Access to the Word document. My goal is to develop a Word template that pulls certain fields from an Access query or table. For example, some of the fields I would like to pull from Access are etc..... But I would...
0
9239
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9158
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9090
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8059
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4503
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4764
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3208
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2606
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2148
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.