pre query query

J

john dumas

This is a different question

I am running the following to merge access records into word

ActiveDocument.MailMerge.OpenDataSource Name:= _
"C:\2003\westwooddb\westwood.mdb",
ConfirmConversions:=False, ReadOnly:= _
False, LinkToSource:=True, AddToRecentFiles:=False,
PasswordDocument:="", _
PasswordTemplate:="", WritePasswordDocument:="",
WritePasswordTemplate:= _
"", Revert:=False, Format:=wdOpenFormatAuto,
Connection:= _
"QUERY DoctorAndPatientNamesQuery", SQLStatement:= _
"SELECT * FROM [PatientNameQuery]", SQLStatement1:=""


Can I pre run the "QUERY DoctorAndPatientNamesQuery" query
and :
1. get how many or if any matches
2. save the inputs so they would not have to be re-imputed
this would annoy the user.
 
C

Cindy Meister -WordMVP-

Hi John,

From a discussion already in the list, I think you've
already solved your problem, but just in case you're still
looking for this
Can I pre run the "QUERY DoctorAndPatientNamesQuery" query
and :
1. get how many or if any matches
You could do this using a DAO or ADO connection to the data
source, before initiating the merge link.
2. save the inputs so they would not have to be re-imputed
this would annoy the user.
I don't follow what you mean, here.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jan
24 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top