Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA to conditionally format form values

Status
Not open for further replies.

JPimp

Technical User
Mar 27, 2007
79
0
0
US
I never write VB code inside Access, and I am not sure how to start this, what I want to do is to color code values in an Access 2000 form based on hard-coded values in a table.

I.e. I have a table called "limits" and for each field in my form, I have a Min and a Max value, so for example, I want to color Form Field 1 red if the value in the form is below 5.0298 or above 5.0399. I have about 6 fields like this, all with different min/max range. I know I can do this directly in an Access form, but I thought it might be cleaner to do with a macro as the data is refreshed in the form and hardcoding the values in a table that is maintained and secure.

Thanks for any input,

Kai-What?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top