Control field property

F

Frederic

I created a form which (displayed as a continuous form) which contains a drop down menu. When I select different values a macro enable or disable an other field. However, it does this for all records for example if I go torecord 2 and select a value that enables the field and go back to record 1, the field is enabled as well although it should be disabled. Is there a way to control the property of a field on each record and not at the form level?

Thanks in advance for your help.
 
S

Sandra Daigle

Thought a continuous form displays multiple rows, each row is only a copy of
the controls on the main form. As you've already seen, when you change the
property for one row, all rows are affected.

If you are using Access 2000 or later you can use Conditional Formatting to
enable/disable controls based on whatever condition you provide. Click the
control which needs to be toggled and then click Format->Conditional
Formatting. Check the online help for more specifics on how to build the
conditions.

CF is somewhat limited in what it can do but it is useful for many
situations. Stephen Lebans has put together a sample database demonstrating
some ways to use Conditional Formatting:
http://www.lebans.com/conditionalformatting.htm
 

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