B
Bateman28
Hi
I am trying to figure out how to change certain fields when a tickbox is
ticked to the value of True. My Tickbox is named WDAccessed.
I have tried the following;
Private Sub WDAccessed_Click()
If Me![WDAccessed] = True Then
Me![FullName.BackColour] = 255 Colour Red
Me![WorkDueDate.BackColour] = 255 Colour Red
Else
Me![FullName.BackColour] = -2147483643 Normal BackColour
Me![WorkDueDate.BackColour] = 2147483643 Normal BaclColour
End If
End Sub
Any help would be great.....Cheers
By: Bateman28 In: microsoft.public.access.formscoding
Me.ControlName.BackColor = xxxx
I don't believe that the Brit spelling of "colour" works, but I could be
fulla crap (wouldn't be the first time - heh)
Hi Dennis
I have tried the code you suggested and it worked, the only problem is that
when my tick box is ticked "True" the whole column within the specified field
name changes colour, is there a way in which to make it so that only the
record that the tick box is to the value of true changes colour and the
fields that are not ticked stay there original colour???
Any help would be great!
Cheers
I am trying to figure out how to change certain fields when a tickbox is
ticked to the value of True. My Tickbox is named WDAccessed.
I have tried the following;
Private Sub WDAccessed_Click()
If Me![WDAccessed] = True Then
Me![FullName.BackColour] = 255 Colour Red
Me![WorkDueDate.BackColour] = 255 Colour Red
Else
Me![FullName.BackColour] = -2147483643 Normal BackColour
Me![WorkDueDate.BackColour] = 2147483643 Normal BaclColour
End If
End Sub
Any help would be great.....Cheers
By: Bateman28 In: microsoft.public.access.formscoding
Me.ControlName.BackColor = xxxx
I don't believe that the Brit spelling of "colour" works, but I could be
fulla crap (wouldn't be the first time - heh)
Hi Dennis
I have tried the code you suggested and it worked, the only problem is that
when my tick box is ticked "True" the whole column within the specified field
name changes colour, is there a way in which to make it so that only the
record that the tick box is to the value of true changes colour and the
fields that are not ticked stay there original colour???
Any help would be great!
Cheers