Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 08-28-2024, 08:28 PM
Guessed's Avatar
Guessed Guessed is offline Word doc - Mail Merge Document returns compile error if only one record available Windows 10 Word doc - Mail Merge Document returns compile error if only one record available Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

What does err.number 5631 mean? Where did you source that code?

I don't have time to work on the nuances of your code so just bring the following line up onto that same line so it says
If Err.Number = 5631 Then Err.Clear

That should allow the code to remove that particular error
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word doc - Mail Merge Document returns compile error if only one record available supress mail merge error document vincenzo345 Mail Merge 2 10-10-2017 12:03 PM
Word doc - Mail Merge Document returns compile error if only one record available Mail Merge Next Record If rule RHensley Mail Merge 10 03-07-2017 08:05 AM
avoid duplicete record and merge the record with the existed record hemant.behere Excel 0 01-10-2012 02:53 AM
compile error in Word raco Word 0 09-28-2010 12:40 PM
Extraneous record in Word Mail Merge aldo13 Mail Merge 0 01-23-2006 01:58 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:32 AM.


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