Compare Dates

  • Thread starter Thread starter Koulla
  • Start date Start date
K

Koulla

Hello,

I have one field EstimateDeliveryDate that accept date in
format 3/1/2005 and I want to compare it with the system
current date. If EstimateDeliveryDate is before system
current date then to change the fontcolor to become red
else nothing to do.

How can I do that in code???

Pls help me!

Thanks in advance
Koulla
 
Koulla

You can use Conditional Formatting (see under the Format menu in design
view of your form) for the EstimateDeliveryDate textbox. In the first
Condition box, select 'Field Value Is', in the second box select 'Less
than', and in the third box, simply type Date() Then you can select the
colour required.
 

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

Similar Threads

Compare a field date with computer current date 1
DateDiff 4
Access Compare records in same access table 0
Date compare 7
Date Diff Formulas 7
Date search query 0
compare dates in MS access 2
Problem with date comparison 4

Back
Top