Hi -
Need some help - I have a subform called [Attendees Subform] which loads in a main form called [Attendees]
When the subform loads I have it set with a default view datasheet.
One of the fields within the subform is called [Indate] and would either contain the words "Live" or "Expired".
What I need to happen is - If the field = "Expired" then back color should equal Red. else white if it equals "Live"
I have a small routine which works fine for a report and works if I run this subform as a single form view apose to datasheet view.
If .Value = "Live" Then
.BackColor = vbWhite
.ForeColor = vbBlack
.FontBold = False
Else
.ForeColor = vbBlack
.BackColor = vbRed
.FontBold = True
End If
Anyone got idea why its going wrong?
Thanks in advance
Mike
Need some help - I have a subform called [Attendees Subform] which loads in a main form called [Attendees]
When the subform loads I have it set with a default view datasheet.
One of the fields within the subform is called [Indate] and would either contain the words "Live" or "Expired".
What I need to happen is - If the field = "Expired" then back color should equal Red. else white if it equals "Live"
I have a small routine which works fine for a report and works if I run this subform as a single form view apose to datasheet view.
If .Value = "Live" Then
.BackColor = vbWhite
.ForeColor = vbBlack
.FontBold = False
Else
.ForeColor = vbBlack
.BackColor = vbRed
.FontBold = True
End If
Anyone got idea why its going wrong?
Thanks in advance
Mike