Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-14-2015, 06:43 AM
shabbaranks shabbaranks is offline Populating a Word document with VBA\SQL Windows 7 64bit Populating a Word document with VBA\SQL Office 2007
Advanced Beginner
Populating a Word document with VBA\SQL
 
Join Date: Mar 2011
Posts: 89
shabbaranks is on a distinguished road
Default

Im slowly getting there (and slowly learning more about Word so thanks...!!)



I have used the ctrl f9 function to create the { and written the code in between as per the image below. Whats happening now is if I open the document I am prompted to insert the job number (it asks me a few times) and then when it stops the job number is empty and the other fields relate to a completely different job number... humph

Reply With Quote
  #2  
Old 07-14-2015, 07:22 AM
macropod's Avatar
macropod macropod is offline Populating a Word document with VBA\SQL Windows 7 64bit Populating a Word document with VBA\SQL Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by shabbaranks View Post
Whats happening now is if I open the document I am prompted to insert the job number (it asks me a few times) and then when it stops the job number is empty and the other fields relate to a completely different job number
The multiple prompts suggests either:
• you have have more than one FILLIN field in the document; and/or
• you are using a Word template rather than a mailmerge main document.
You should also have a space after the '<>' in the SKIPIF field.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Populating Data in New TABs? Sueade Excel 2 06-02-2015 09:12 PM
Mail Merge Field Not Populating JennEx Mail Merge 3 05-10-2015 09:30 PM
Populating a table cell wit document properties milena Word VBA 2 04-15-2015 07:28 AM
Reapting/Populating the same text in Word 2007 akwjaw14 Word 0 06-03-2014 03:40 PM
Populating a Word document with VBA\SQL Need help populating dropdown box antztaylor Word 3 11-06-2012 05:46 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:45 PM.


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