Help with greying out a field

T

TD

I have a form that I want to be able to grey out Field #2 if the user
selects a value of true from Field #1. If the user selects a value of false
from Field #1, then I want that user to be able to make an entry in Field #2
(in orther words not be be greyed out.)
Can this be done?

Thanks,
TD
 
G

Graham Mandeno

Hi TD

Yes. In the AfterUpdate event procedure of Field1, put the following line
of code:

[Field2].Enabled = [Field1] <> False
 

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