Thread
: [Solved]
VBA mailmerge all but last row in datasource
View Single Post
09-01-2017, 05:57 AM
macropod
Windows 7 64bit
Office 2010 32bit
Administrator
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
Presumably, it was actually:
SELECT * FROM c:\MERGE\user\word.txt WHERE [M_2] IS NOT NULL
Your VBA code should thus contain:
SQLStatement:="SELECT * FROM " & doc & "WHERE [M_2] IS NOT NULL"
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
macropod
View Public Profile
Find all posts by macropod