A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do I format a field based on the value



 
 
Thread Tools Display Modes
  #1  
Old May 24th, 2010, 08:52 PM posted to microsoft.public.access.forms
Mommybear
external usenet poster
 
Posts: 37
Default How do I format a field based on the value

I have a form that is populated from a query using several tables. In the
detail section I have the following fields:

Category Code qty PO number ... .... ...

The qty is populated in the query based on whether or not a PO number is
available. If the PO number is not available then it comes from table a, if
it is available then it comes from table b.

On the form, I have my fields color-coded for easy reading. I would like to
be able to color the border and column heading based on where this value
comes from. If table A, then it is blue, if table b then it is red and
blocked from being updated (Locked = Yes).

Is this possible to do and if so How? If VBA coding is involved, please
spell it out for me as I'm still learning this. Thank you.
Ads
  #2  
Old May 27th, 2010, 03:19 AM posted to microsoft.public.access.forms
Tom van Stiphout[_2_]
external usenet poster
 
Posts: 1,653
Default How do I format a field based on the value

On Mon, 24 May 2010 12:52:04 -0700, Mommybear
wrote:

No VBA required, just a look at "Conditional Formatting".

-Tom.
Microsoft Access MVP


I have a form that is populated from a query using several tables. In the
detail section I have the following fields:

Category Code qty PO number ... .... ...

The qty is populated in the query based on whether or not a PO number is
available. If the PO number is not available then it comes from table a, if
it is available then it comes from table b.

On the form, I have my fields color-coded for easy reading. I would like to
be able to color the border and column heading based on where this value
comes from. If table A, then it is blue, if table b then it is red and
blocked from being updated (Locked = Yes).

Is this possible to do and if so How? If VBA coding is involved, please
spell it out for me as I'm still learning this. Thank you.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:46 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2004-2019 OfficeFrustration.
The comments are property of their posters.