Allow field to generate change in screen colour in Access

B

BTQMJM

We currently use an Access database to monitor project expenditure in
particular sections.

I would like to be able to automatically generate a change in screen colour
when certain payments are made, therefore the 'paid' field being populated.

Does anyone know how this can be done or even if it can be done?

Many thanks

BTQMJM
 
M

Marshall Barton

BTQMJM said:
We currently use an Access database to monitor project expenditure in
particular sections.

I would like to be able to automatically generate a change in screen colour
when certain payments are made, therefore the 'paid' field being populated.


If the form is displayed in Single View, then you can use
the payment text box's AfterUpdate event AND the form's
Current event to set a text box's or the form's BackColor.

If <some expression> Then
Me.BackColor = RGB(255, 220,220) 'Pink
Else
Me.BackColor = vbWhite
Enf If
 
D

Dale Fye

Or you could use conditional formatting of a textbox based on the value in
that box, whether it has the focus, or some other critieria (expression).

--
HTH
Dale

Don''t forget to rate the post if it was helpful!

email address is invalid
Please reply to newsgroup only.
 

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