conditional formatting ?

F

felix

i have a simple text box - txtdate, with condition if weekmane(txtdate) = vbsunday change its forecolor to red.
it works sometime but not every time, please help !!
 
F

fredg

i have a simple text box - txtdate, with condition if
weekmane(txtdate) = vbsunday change its forecolor to red. it
works sometime but not every time, please help !!

Sorry, I never heard of the weekname() function.

How about: If WeekDay([txtDate] = 1 Then
[txtDate].Forecolor = vbRed
Else
[txtDate].Forecolor = vbBlack
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top