Change font on past due date selected from ocxCalendar to appear r

J

Jacquiemal

I have a bunch of date due and date sent fiels on a form that rely on an
ocxCalendar to fill them in. I would like the date of the "sent" field to
appear red and bold and have a comment box appear for an explanation if the
"sent" date is past the "due" date. How would I do this? Any help
appreciated, thanks!
 
M

Marshall Barton

Jacquiemal said:
I have a bunch of date due and date sent fiels on a form that rely on an
ocxCalendar to fill them in. I would like the date of the "sent" field to
appear red and bold and have a comment box appear for an explanation if the
"sent" date is past the "due" date.


You can use Conditional Formatting (Format menu) to get the
color and bold. The message can be done in the form's
Current event:

If Me.txtAbcDue < Me.txtAbcSent Then
MsgBox "Sent is after due"
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