Check Box's and VBA

  • Thread starter Thread starter Ronald
  • Start date Start date
R

Ronald

Hello,

I am presently trying to export data from a form to a
WORD template using VBA.

Normal text fields are working fine.

Presently I have run into the error that I cannot take
the value of a checkbox on the form (called chkPara4) and
setting the check box on the WORD document
(bookmark "chkPara4") to equal the form value.

The code I have does not work. I am not sure if I am not
understanding the syntax of the VBA.

it is not as easy as using:

(SAMPLE)

Set objWord = New Word.Application
objWord.Documents.Add "c:/database/report_special.dot"
objWord.Visible = True

objWord.ActiveDocument.Bookmarks("chkPara4").Value = Me!
chkPara4

(END SAMPLE)

There seems to be some sort of difference between the
both. I am using the if statement, but the debugger does
not stop until I try to set the values to be equal.

Any help would be great.

RMD
 
Well, I do not have Word here to check, but I doubt that a Word bookmark
object has a Value property.

HTH,
TC
 
Back
Top