Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-12-2010, 04:19 PM
dellv1510 dellv1510 is offline doc name according merged data Windows Vista doc name according merged data Office 2007
Novice
doc name according merged data
 
Join Date: Sep 2010
Posts: 1
dellv1510 is on a distinguished road
Default doc name according merged data

I have a document in which i am merging data from a database. each record merged from the database has a unique primary key.



After mail merging a record into the document. I would like to save the document with a particular filename/format (docname.primarykey.doc e.g. Meeting.0321.doc). Although, this can be done manually each time I merge data, it is time consuming and increases the possibility of the user making mistakes. Therefore, I would like this to happen automatically every time i print the document with merged record data (a record will only be printed once in a particular document).

I have a rough idea of how to solve this problem. This is by using vb script (creating a command button). But i cant seem to work out how to assign merged data (of a particular record and field) to a variable. this is because i've never really worked with merged data using VB. if i can do this i think ill be able to solve the rest.

I hope what i have explained above is clear enough. I thank you all very much in advance. Your help is appreciated.

Last edited by dellv1510; 09-12-2010 at 05:51 PM.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Continuous page numbering in a merged document dkeinath Mail Merge 0 07-30-2010 09:30 AM
doc name according merged data No toggle b/w 2 accounts; mail merged in 1 inbox Windwardman Outlook 1 06-09-2010 09:25 AM
How do I reference a merged cell in a multi column & row table in MS Word ('03')? jihanemo Word Tables 0 03-18-2009 08:33 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:48 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft