Make fields unavailable

J

JR

In a form, I'm trying to make certain fields only
available to a user based on his previous answers. For
example, let's say the question is: "Did you set an
appointment?" w/ a Yes/No option. If he answers "Yes,"
then the Date, Time, & Location fields become available
to him. If he answers "No," they're unavailable to him.

I'm still learning Access and am stuck. Thanks in
advance.

JR
 
J

Jim Allensworth

In a form, I'm trying to make certain fields only
available to a user based on his previous answers. For
example, let's say the question is: "Did you set an
appointment?" w/ a Yes/No option. If he answers "Yes,"
then the Date, Time, & Location fields become available
to him. If he answers "No," they're unavailable to him.

I'm still learning Access and am stuck. Thanks in
advance.

JR

Basically, you would set the fields Enabled property depending on the
input from checkbox chkSetAppt. Use the After Update event to modify
the controls. (BTW, the Date & Time should be combined)
For example ...

Me.txtDateTime.Enabled = Me.chkSetAppt
Me.txtLocation.Enabled = Me.chkSetAppt

It sounds like the default of txtDateTime & txtLocation would be NOT
enabled - they would be enabled or not depending on the response to
chkSetAppt.

- Jim
 

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