![]() |
|
#1
|
|||
|
|||
![]()
Hello I am new to this site, and thank you for taking the time to read this! I am working on an Access database, when I Push a button the goal is for for it to open a document that I have already set up with Mail Merge. When I push the button it opens the document, but I cannot scroll between the different records.
Here is the code that I've already created. Code:
Private Sub cbFESOP_Click() Dim wrd As Word.Application Set wrd = CreateObject("Word.Application") Dim doc As Word.Document Set doc = wrd.Documents.Open("Y:\Reports\FESOP Certification.docx") wrd.Visible = True End Sub any and all help will be appreciated thank you! |
#2
|
||||
|
||||
![]()
Your code has nothing to indicate that you're actually trying to merge anything. For code to do that, see, for example 'Send Mailmerge Output to Individual Files' in: https://www.msofficeforums.com/mail-...ps-tricks.html
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
PosseJohn | Word VBA | 1 | 12-06-2013 01:16 PM |
![]() |
PlushKitti | Word | 1 | 07-21-2013 08:20 PM |
Add increasing number at document opening | HidExp | Word | 6 | 09-17-2012 12:28 AM |
![]() |
Gregshah | Word | 8 | 01-30-2012 03:01 PM |
Word document not opening | 7beats | Word | 2 | 04-16-2010 12:40 AM |