![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have a main form which has a sub form on the page, the sub form contains two text boxes of totals (total A & total B), when a value is in total B I want the main form's background to change colour to red. I have tried this code in the form oncurrent event without success, If Forms!frmTotal!txtTotalA = Value Then Me.BackColour = VbRed Else ' End If I would of thought I've got the syntax wrong on the vb program somewhere on the code. Can anyone help me on this please, Thanks. |
#3
| |||
| |||
|
|
Hi, I have a main form which has a sub form on the page, the sub form contains two text boxes of totals (total A & total B), when a value is in total B I want the main form's background to change colour to red. I have tried this code in the form oncurrent event without success, If Forms!frmTotal!txtTotalA = Value Then Me.BackColour = VbRed Else ' End If I would of thought I've got the syntax wrong on the vb program somewhere on the code. Can anyone help me on this please, Thanks. |
![]() |
| Thread Tools | |
| Display Modes | |
| |