Help with formatting subforms

Jim W

Registered User.
Local time
Today, 15:03
Joined
Feb 4, 2003
Messages
198
I have a main form with 4 subforms. The subforms a setup in columns kinda like excel. Eack subform is displaying data. What I want to do in compare the data in subform 2, 3, 4 to the data in subform 1 and if different using the conditional format change the color of the fields. How do I code a conditional format from subform to subform?

Jim
 
Format

I know you can do it his way (see attached).
You may want to write some conditional code using VB instead.

What are you looking to acheive?

Example
Code:
If .OrderClosed = -1 Then
Me.OrderStatus.ForeColor = 255 ' Control colour
Me.OrderStatus.BackColor = 0    ' Control colour

Else IF
If .OrderClosed = 0 Then
Me.OrderStatus.ForeColor = 0 ' Control colour
Me.OrderStatus.BackColor = 255    ' Control colour

Something like that...........

Hope it helps.....
 

Attachments

  • Conditional Formatting.JPG
    Conditional Formatting.JPG
    65.9 KB · Views: 106
Last edited:

Users who are viewing this thread

Back
Top Bottom