Hi,
Can someone help me figure out what in the heck is going wrong with my Super easy word merge???
I've used it successfully for 8 yrs in an Access2003 db.
However, now we're on Access 2013 and I can't get it to work.All the same objects and modules have been copied over to my new blank db.
First tried my existing code opened with Access 2013, works great but not when copied into an accdb created in 2013.
Tried the slightly newer version on Albert Kallal's website.
Also tried the more recent module code for WordCode found in this forum at http://www.access-programmers.co.uk/forums/showthread.php?t=222631
2 issues:
1) On the Contacts form, when clicking either Merge all records or Merge single record this line fails:
Dim OneField As DAO.Field ' dao code
with error message: 'User defined type not defined'
2) This one isn't a deal breaker but looks scary for the end users. There is a new warning msg when an older db successfully opens the Word doc in an older db (using Word/Access 2013), about 'did you know this is going to run SQL: "SELECT __ from O:\Dev\InvDb\__ Data from your database will be placed in the document" etc etc'
If you click Yes on that msgbox, the doc blinks a couple of times, displays merge fields and then displays the values as expected from the SQL.
Any help you can offer would be very much appreciated!
WrHn85
Can someone help me figure out what in the heck is going wrong with my Super easy word merge???
I've used it successfully for 8 yrs in an Access2003 db.
However, now we're on Access 2013 and I can't get it to work.All the same objects and modules have been copied over to my new blank db.
First tried my existing code opened with Access 2013, works great but not when copied into an accdb created in 2013.
Tried the slightly newer version on Albert Kallal's website.
Also tried the more recent module code for WordCode found in this forum at http://www.access-programmers.co.uk/forums/showthread.php?t=222631
2 issues:
1) On the Contacts form, when clicking either Merge all records or Merge single record this line fails:
Dim OneField As DAO.Field ' dao code
with error message: 'User defined type not defined'
2) This one isn't a deal breaker but looks scary for the end users. There is a new warning msg when an older db successfully opens the Word doc in an older db (using Word/Access 2013), about 'did you know this is going to run SQL: "SELECT __ from O:\Dev\InvDb\__ Data from your database will be placed in the document" etc etc'
If you click Yes on that msgbox, the doc blinks a couple of times, displays merge fields and then displays the values as expected from the SQL.
Any help you can offer would be very much appreciated!
WrHn85