Access to Word Automation

jmriddic

Registered User.
Local time
Today, 03:05
Joined
Sep 18, 2001
Messages
150
Hi, I need a little help.
There is an article from the Microsoft KB site that shows how to send data to word from the current record on the form. I set that up and works pretty well when you have data in the field. There are some text and memo fields that will not be filled in on every record and I am gettting errors with Nulls when it trys to use the code when it comes to those fields in the code like the following.

.Selection.Text = (CStr(Forms!HumanResourcesForm2!NeoNateInfant))
.ActiveDocument.BookMarks("A2").Select
IS there a way to make this work?
 
try this:

.Selection.Text = (CStr(Forms!HumanResourcesForm2!NeoNateInfant & ""))
 

Users who are viewing this thread

Back
Top Bottom