Fields not keeping data

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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
 
Back
Top