Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional Formatting to Date Range

Status
Not open for further replies.

ali32uk

Technical User
Mar 31, 2011
22
GB
Hi All

I m trying to use conditional formatting on a textbox on a continuous form, to find if the TxtMonth Date value is between Startdate and enddate date values, as below:

Untitled_dugauz.png



Problem i m having is that it only checks if the day value is between day values of startdate and enddate, so for example if the date in Txtmonth is 28/1/2016 against value of startdate 01/11/2016 and enddate 30/11/2016 the formatting is applied as true because 28 is between 01 and 30...yes clearly the date is not between the dates..

Can anyone off guidance?

Ali
 
The comparison seems to be comparing TEXT values and not DATE values.

Are you certain that all three fields are Dates?

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top