noboffinme
Registered User.
- Local time
- Tomorrow, 07:46
- Joined
- Nov 28, 2007
- Messages
- 288
Hi
I've looked at many examples of how to do this but can't find one to do exactly what I want.
I have an Access 2003 form (frm1) in datasheet format with several fields, one being 'Member' which is a checkbox.
I want the entire row to be shaded a colour when the Member checkbox is ticked.
Here's the code;
Private Sub Member_Click()
'The Member field is a checkbox
Dim Member As Boolean
Dim lngYellow As Long
'Declare colour
lngYellow = RGB(255, 255, 0)
'The member field starts out as false until checked
'If the checkbox is ticked, colour the entire row yellow
If Member = True Then
CurrentRecord.BackColor = lngYellow
End If
End Sub
Any suggests?
I've looked at many examples of how to do this but can't find one to do exactly what I want.
I have an Access 2003 form (frm1) in datasheet format with several fields, one being 'Member' which is a checkbox.
I want the entire row to be shaded a colour when the Member checkbox is ticked.
Here's the code;
Private Sub Member_Click()
'The Member field is a checkbox
Dim Member As Boolean
Dim lngYellow As Long
'Declare colour
lngYellow = RGB(255, 255, 0)
'The member field starts out as false until checked
'If the checkbox is ticked, colour the entire row yellow
If Member = True Then
CurrentRecord.BackColor = lngYellow
End If
End Sub
Any suggests?