not allowing changes to input field once input has been made.

D

dale

How does one change the properties of an input field from
being input capable to no longer allowing a user to
change the contents of the field? This is a custom
form. running outlook 2000

Are there any examples in the book or any suggestions
would be helpful?

Thank you in advance.
 
G

Guest

-----Original Message-----
You can set the Enabled property for the field's control to False. If you
haven't worked with form control properties before, read about it at
http://www.outlookcode.com/d/propsyntax.htm#unbound

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers






.

Initially the field control will be set to true and once
there is an entry to the field then woul like to set to
False. First off, can this be done? and secondly, does
the example show this?

Thanks you for your help
 
S

Sue Mosher [MVP-Outlook]

Yes, this can be done, and yes, that page should give you the building
blocks you need.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
D

dale

-----Original Message-----
Yes, this can be done, and yes, that page should give you the building
blocks you need.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers






.
thanks again for all your help and for the book. It has
been very helpful.
 
D

dale

-----Original Message-----
has
been very helpful.
.
'********************************************************
*
'** Disable Line 1
'*********************************************************
Dim objControl
Dim myPage

Sub Line1_Disable
'
'Prepare to disable line 1
'
Set myPage = Item.GetInspector.ModifiedFormPages
("orderchange_01")
Set objControl = myPage.Controls("Qty01")
If objControl.Value = True Then objControl.Enabled =
False
MsgBox objControl.Value

End Sub


This code errors out on the set objControl line. When
right click on field, the name on the property display is
Qty01.

Why does this error out? I just don't see it.

Thanks.
 
S

Sue Mosher [MVP-Outlook]

Often, it means a typo. Copying and pasting the name from the page and the
control is a good habit to get into. Watch out for leading and trailing
spaces. You can always rename the control, of course.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
G

Guest

-----Original Message-----
Often, it means a typo. Copying and pasting the name from the page and the
control is a good habit to get into. Watch out for leading and trailing
spaces. You can always rename the control, of course.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers






.
Okay, just figured out that the fields on the form are
bound controls and the page that you referred me to is
for unbound controls. 1) does this make a difference and
2) can I still swith the values for enabled back and
forth depending on whether data is in the field or not?

Thanks again, your help and the book has been
invaluable. Just to new at this on some things.
 
G

Guest

-----Original Message-----
* display
Okay, just figured out that the fields on the form are
bound controls and the page that you referred me to is
for unbound controls. 1) does this make a difference and
2) can I still swith the values for enabled back and
forth depending on whether data is in the field or not?

Thanks again, your help and the book has been
invaluable. Just to new at this on some things.
.

figured it out. Thanks for all your help!!!
 
S

Sue Mosher [MVP-Outlook]

The syntax for referring to a form control is the same regardless of whether
it's bound or unbound.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
G

Guest

-----Original Message-----
The syntax for referring to a form control is the same regardless of whether
it's bound or unbound.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers






.
Thanks I have it working now. You have been great
through all this. Thanks again for all your invaluable
help and expertise.
 

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