Conditional Formatting

S

Secret Squirrel

I've been using the conditional formatting to change the backcolor of a field
on my form when that field has the focus. Sorta like hightlighting the field
the cursor is in.
Is there a way to set this up in VBA code instead of using the conditional
formatting under the format menu? The reason I ask is because when a user
opens the form the record is locked and cannot be modified but they can click
on a field if they want but they can't update it until the hit the modify
command button I have on the form. I don't want the conditional formatting to
change the backcolor of the field that has the focus until the modify command
button is clicked. Then when they click the save command button it will shut
off the conditional formatting. It confuses them because they think when the
backcolor is changed for the field that has the focus they think they can
modify it. But they actually have to click the modify button first. Is there
a way to set this up in a module and then call it from the command buttons
onclick event?
 
J

Jeff Boyce

Another approach might be to disable the fields until the <Modify> command
button has been clicked.

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
S

Secret Squirrel

How do I disable all the fields on my form at once? They are on a tab control
so I don't know how to do that.
 

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