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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing main form properties from the subform

Status
Not open for further replies.

Eurof

IS-IT--Management
Nov 14, 2003
9
DE
I am not sure if this is simple or difficult. I have a subform with a quantity column. When I add/change this value, it refects using a total field on the main form. I would like the field to change colour when it becomes negative.

Any ideas
 
Is the total field in a continuous form? If so, then I suggest that you take a look into ConditionalFormatting.

If not, then you might want to consider simply changing the backcolor inside an If statement used the Change event of that textbox.

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Initially your conditional formatting looked the best option, however, as I said the text box is based on the sum of the quantity, but I wanted the text box to be red if it was greater that the value in another text box.

Thinking about you change event, I cannot get this to fire. I am not sure why, is it because the sub form has focus.

 
That could be. Have you tried accessing the control, setting the properties accordingly, directly from the subform

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top