Fields not keeping data

G

Gabe

I'm using Outlook 2003. Is it possible for more than one property to be set
on a field in a form? For example I create a text field on a custom form, I
set the property to value so I can input text, in VB script I code so that on
the send event that field will lock and the text I input cannot be changed by
the recipient. I send the custom form and the text goes through fine but the
field is not locked the recipient is able to edit it. So I change the
property value to Locked, I can now get the code to change the field to
either locked or unlocked using VBscript but the Text I input dissappears for
the recipient. How can I make it so that I can use VBscript to change as
many properties of field as I want?
 
S

Sue Mosher [MVP-Outlook]

Since "field" is a synonym for "property," no. Perhaps you are also
confusing the concept of a control, the user interface element where you
enter or see data, with the data property that stores that data in the
Outlook item? Controls can be locked, but not properties. And any changes
that you make to the UI in the Item_Send event handler have no effect on the
message that the recipient gets, which will open in the custom form as you
designed it. You need to rethink your application and consider using one or
both of these techniques:

-- separate read layout with certain controls set to read-only
-- code in the Item_Open event handler to set controls to read-only on
messages that are not unsent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top