Sorry, but I've never seen an option button control in a Word document. How did you do that?
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"ajkim001" wrote in message ...
Thank you so much Sue. I will try using the value property.
And how would this work with a radio button? Would it be the same code but
"OptionButton" in place of "CheckBox"?
"Sue Mosher [MVP-Outlook]" wrote:
You should to set the check box's Value property explictly, and the expression you set it to must be a True/False expression:
oDoc.FormFields("FieldName").CheckBox.Value = item.userproperties("FieldName")
"ajkim001" wrote in message ...
I created an OL form and used the Sub cmdPrint_Click code to print the form
data. I got the oDoc.FormFields ("FieldName").Result = item.userproperties
("FieldName") part working. However, I'm having trouble with the checkboxes
and radio buttons. I've tried using oDoc.FormFields("FieldName").CheckBox =
item.userproperties("FieldName") but it doesn't work. Maybe I'm missing
something or is there a different code that I need to use to transfer the
data to the Word template?
I hope someone has the answer to this. I've searched online and in Word and
Outlook books to no avail. Thank you!