Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 14th, 2007, 09:41 PM
Authorized User
 
Join Date: Nov 2005
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Default Programatic word merge

Using Access 2000. I have VBA code gather stuff into a table. Currently, the user then manually saves the contents of that table into a Word Merge doc by right clicking the table and clicking Export and saving it as a Word Merge file.

I'd like the same Sub from the command button click to popup the Export Table window using that table (and if possible have Word Merge type selected by default). Is this possible?

I'd also like the vba code to open the table for the user to preview. Maybe make it open the table for preview, then popup a msgbox asking "do you want to save this table?"
 
Old September 19th, 2007, 09:40 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

I don't have time right now to research this, but Chapter 11 (Working with Word) in "Expert One-on-One: Microsoft Access Application Development" covers this issue, I think.

Anyone else?

mmcdonal
 
Old September 20th, 2007, 08:14 PM
Authorized User
 
Join Date: Nov 2005
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I got more or less what I need using DoCmd.TransferText... found it through google; I guess my first search wasn't thorough enough.

Thanks !
 
Old September 20th, 2007, 09:12 PM
Authorized User
 
Join Date: Nov 2005
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Even better, I just found this KB article explaining how to use the Windows Common Dialog. Good Stuff

http://support.microsoft.com/default...b;en-us;303066





Similar Threads
Thread Thread Starter Forum Replies Last Post
Merge Word with catalogue option chichiboof VBScript 0 October 17th, 2006 06:06 AM
Word Merge with Access VBA echovue Access 6 May 5th, 2006 05:11 PM
Mail Merge with MS Word bezaman Classic ASP Basics 1 October 6th, 2005 04:13 PM
Merge to word from excel Kevinsharrison Access VBA 1 April 26th, 2005 07:40 AM
Access OLE Merge to Word GregoryHu Access VBA 5 May 7th, 2004 10:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.