Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-06-2016, 10:45 PM
JohnWaltham JohnWaltham is offline Windows 10 Office 2010 32bit
Novice
Access to Word 2010 Form
 
Join Date: Jun 2016
Posts: 1
JohnWaltham is on a distinguished road
Default Access to Word 2010 Form


Please:

I'm trying to pass data from Access 2010 (12 fields) to a Word form. The Access VBA code errors on my 12th field - an Access memo field - if the number of characters exceeds 256; if the field contains 256 characters or less, the data is successfully passed to the Word form.
The VBA errors on line
.FormFields("fldDeliverables").Result = Me!Deliverables

In the Access table the fieldtype is "memo", plaintext, and in the query and form the field is plaintext.

In the Word form, the Access memo field is linked to a legacy text form field whose Maximum Field Length is "Unlimited".

I think the problem is in Word rather than Access - but I've run out of ideas.

ANY suggestions would be greatly appreciated.
Reply With Quote
  #2  
Old 06-07-2016, 06:17 PM
Guessed's Avatar
Guessed Guessed is offline Access to Word 2010 Form Windows 10 Access to Word 2010 Form Office 2013
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,969
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

Is there a reason you need the formfields in the Word document if you are using VBA to write it there anyway? Why not simply use a bookmark to serve as the location where the Access data needs to be inserted?
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #3  
Old 06-07-2016, 06:43 PM
gmaxey gmaxey is offline Access to Word 2010 Form Windows 7 32bit Access to Word 2010 Form Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,428
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

I believe the issue is the 255 character limit of the formfield.Result property. Why not use a content control?
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Access to Word 2010 Form Export Word Form Data to Access pboland Word VBA 1 06-12-2015 06:53 PM
Form Merge Access 2002 to Word 2007 Issue Lea-Andra Word 3 12-30-2014 07:09 AM
Access to Word 2010 Form Word 2010 Dynamic Form adunbar22 Word 3 09-11-2013 08:36 PM
Updating Access with Word Form b2995 Word VBA 0 10-16-2011 09:37 PM
Access to Word 2010 Form Microsoft Access 2010 Error open a Web Form WilfredoMolina Office 1 10-10-2010 06:47 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:03 AM.


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