G
Guest
Hi
Its always the simple things that throw you.
I am trying to loop though some controls on a form. Where the tag property
has "Pick" and the value of the control is greater than Zero
The data in the control is Currency I thought I could access the value of
the control by using the value property but not so... Help would be
appreciated
The code below does work until a I add the Code Asterisked. Problem is I
dont want all controls bold red only those with value greater than £Zero
Private Sub Form_Current()
Dim C As Control
For Each C In Me.Controls
If C.Tag = "tick" ***And C.Value > 0**** Then
With C
.ForeColor = vbRed
.FontBold = True
End With
End If
Next
End Sub
Thankyou
Its always the simple things that throw you.
I am trying to loop though some controls on a form. Where the tag property
has "Pick" and the value of the control is greater than Zero
The data in the control is Currency I thought I could access the value of
the control by using the value property but not so... Help would be
appreciated
The code below does work until a I add the Code Asterisked. Problem is I
dont want all controls bold red only those with value greater than £Zero
Private Sub Form_Current()
Dim C As Control
For Each C In Me.Controls
If C.Tag = "tick" ***And C.Value > 0**** Then
With C
.ForeColor = vbRed
.FontBold = True
End With
End If
Next
End Sub
Thankyou