AutoNew macro merge record count

D

Doug Banwell

I am using Word's AutoNew macro to draw info from an Access database
to merge contracts containing Access main records and sub-records.
I need to know the number of sub-records in my merge before I start
the merge.
I have tried ActiveDocument.MailMerge.Datasource.RecordCount with no
luck - it gives me the number of records in my entire data table, not
the number I have selected for this merge.

I realize that there are probably much easier ways to approach this,
but I'm locked into this method (Word merge) and am not looking to re-
design the process.

Any help would be appreciated,
Doug Banwell
 
D

Doug Robbins - Word MVP

Anzwered in the mailmerge.fields newsgroup.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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