473,416 Members | 1,746 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,416 software developers and data experts.

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 6671
<ba*********@msn.comwrote in message
news:11********************@v45g2000cwv.googlegrou ps.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" <PleaseNOOOsPAMmkal...@msn.com>
wrote:
<babyange...@msn.comwrote in message

news:11********************@v45g2000cwv.googlegrou ps.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 filledintotheWorddocument.

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 differentdocumentfor 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 easywordmergehere:

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 differentdocumentfor each person, then you have a very
complexwordmerge, 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
pleaseNOOSpamKal...@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"
<PleaseNOOOsPAMmkal...@msn.comwrote:
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 thatdocumentpart in theworddocument. Great...
However, when I tried that, the # of pages
allowed in theAccessformdocumentDesign 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-builtwordexample 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
pageworddocument. 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 aworddocumentand reportdocumenttogether 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
pleaseNOOSpamKal...@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" <PleaseNOOOsPAMmkal...@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
pleaseNOOSpamKal...@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"
<PleaseNOOOsPAMmkal...@msn.comwrote:
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.shaw.ca/AlbertKallal/wordmerge/page2.html
andhttp://www.members.shaw.ca/AlbertKallal/wordmerge/Details.htm

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKal...@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
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...
8
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...
5
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...
1
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...
3
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...
0
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...
0
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...
7
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,...
2
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.