M
Machaut
Hi,
I'm a complete novice in VB, and have failed with the examples already
presented in the group (I'm obviously missing something). So perhaps I can
get help with a specific example
I have a form with three bound text boxes and want to change text color to
one control ([FullBlank]) based on the values in the other two ([InsProf]
and [OutProf]). I can't seem to get the syntax right.
Logical conditions:
If [OutProf]="F" then FullBlank.Forecolor=vbBlue
If [OutProf]=("R" OR "RD") then FullBlank.Forecolor=vbGreen
If ([OutProf]="FR" AND [InsProf]="FRBI" FullBlank.Forecolor=vbRed
Else FullBlank.Forecolor=vbBlack
There are actually about twelve different conditions, otherwise I'd use the
conditional formatting.
Any help would be appreciated,
Machaut
@ (NOT)
Optonline
..
net
(remove not to e-mail)
I'm a complete novice in VB, and have failed with the examples already
presented in the group (I'm obviously missing something). So perhaps I can
get help with a specific example

I have a form with three bound text boxes and want to change text color to
one control ([FullBlank]) based on the values in the other two ([InsProf]
and [OutProf]). I can't seem to get the syntax right.
Logical conditions:
If [OutProf]="F" then FullBlank.Forecolor=vbBlue
If [OutProf]=("R" OR "RD") then FullBlank.Forecolor=vbGreen
If ([OutProf]="FR" AND [InsProf]="FRBI" FullBlank.Forecolor=vbRed
Else FullBlank.Forecolor=vbBlack
There are actually about twelve different conditions, otherwise I'd use the
conditional formatting.
Any help would be appreciated,
Machaut
@ (NOT)
Optonline
..
net
(remove not to e-mail)