A
amy14775
I am trying to set my program up so on a form if a field the user needs to
fill in is null then it will appear yellow and if it is filled like it should
be then red backcolor. I don't want to set them up as required fields, just
reminding the user these fields are suggested before printing. I have been
trying to use the below code and it just sits there no error codes or
anything. I have placed the code on the onOpen event for the form.Any help
would be greatly appreciated. I don't have experience with IsNull.Thank you
Dim lngYellow As Long
Dim lngRed As Long
lngYellow = RGB(255, 255, 0)
lngRed = RGB(255, 0, 0)
If IsNull(Me.txtBillReceived) Then
Me.txtBillReceived.BackColor = lngYellow
Else
Me.txtBillReceived.BackColor = lngRed
End If
End Sub
fill in is null then it will appear yellow and if it is filled like it should
be then red backcolor. I don't want to set them up as required fields, just
reminding the user these fields are suggested before printing. I have been
trying to use the below code and it just sits there no error codes or
anything. I have placed the code on the onOpen event for the form.Any help
would be greatly appreciated. I don't have experience with IsNull.Thank you
Dim lngYellow As Long
Dim lngRed As Long
lngYellow = RGB(255, 255, 0)
lngRed = RGB(255, 0, 0)
If IsNull(Me.txtBillReceived) Then
Me.txtBillReceived.BackColor = lngYellow
Else
Me.txtBillReceived.BackColor = lngRed
End If
End Sub