Solved Continuous Form and Color Code

mloucel

Active member
Local time
Today, 00:31
Joined
Aug 5, 2020
Messages
366
Hello Gurus...

I have the following form:
Continuous form.jpg


My boss has asked me to do the following:

Create 4 boxes
Stat / Approval Date / Appointment Date / Notify Date
I did each one as a text box, thinking I could have done something like this on the On Load Event:

Code:
If Stat then StatColor.BackColor = vBRed
If not IsNull AppvalDate then  ADColor.BackColor = vBBlue
if not IsNull AppDate then AppDateColor.BackColor = vBYellow
If not IsNull NotDate then NotDateColor.BackColor = vBGreen

This has to occur for each record that is displayed in the form.

but as you imagine it did not go well.

Can someone point me in the right direction please, if possible with a sample code.

Thanks.
 
ke this on the On Load Event:
You can either use conditional formatting or the On Paint event of the detail section.
 
You can either use conditional formatting or the On Paint event of the detail section.
Yep I was able to do it with Conditional, thou I am curious with the On Paint event, I want to try.

Question, on the On Paint Event then the If Then Scenario will work or dio you suggest something else?
 

Users who are viewing this thread

Back
Top Bottom