Advertisement

07.21.2008 at 11:12PM PDT, ID: 23584256
[x]
Attachment Details

Setting a field with Document.Content.Text from word seems to lose CRLFs (VBA)

Asked by PeteyBgood in Microsoft Access Database, Microsoft Office Suite, Access Forms

Tags: ,

I have a database with a memo field called 'Description' and am automating Word to edit it. The App is in a class module with events, and the ID for the record whose description is being edited is stored in a document variable, and the RecorsetClone of the Forn that invoked Word is a property of the class module.  When the Document is saved, the DocumentBeforeSave event handler looks up the ID and does
a
       RecSet.Edit
       RecSet![Description] = Doc.Content.Text
       RecSet.Update
the problem is that the newly edited record is displayed in the Form's testbox with missing CRLFs, but if I load it back into Word the formatting is fine. Does Word use a different delimiter? I could probably live with this but being able to display the Description properly on a Form is important... what am I missing?
Start Free Trial
 
Loading Advertisement...
 
[+][-]07.22.2008 at 12:08AM PDT, ID: 22056944

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Access Database, Microsoft Office Suite, Access Forms
Tags: VBA, IE (latest ver)
Sign Up Now!
Solution Provided By: peter57r
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.22.2008 at 05:52AM PDT, ID: 22058765

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.22.2008 at 06:03AM PDT, ID: 22058859

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.22.2008 at 06:45AM PDT, ID: 22059241

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628