J
Junior
Acc2K -Using a continuous form - i want to change the color of a txt box
(date) to red if the date is greater than another date txtbox - i put this
code in the forms current event - but this changes all txtcompl to red
what am i doing wrong?? thanks
Dim dtComp As Date, dtSusp As Date
dtComp = Nz(Me!txtCompl, 99) 'date complete
dtSusp = Nz(Me!txtsusp, 99) 'due date
If dtComp = 99 or dtComp > dtSusp Then
[txtCompl].ForeColor = vbRed
End If
(date) to red if the date is greater than another date txtbox - i put this
code in the forms current event - but this changes all txtcompl to red
what am i doing wrong?? thanks
Dim dtComp As Date, dtSusp As Date
dtComp = Nz(Me!txtCompl, 99) 'date complete
dtSusp = Nz(Me!txtsusp, 99) 'due date
If dtComp = 99 or dtComp > dtSusp Then
[txtCompl].ForeColor = vbRed
End If