BKW
Ten Centuries
Points: 1350
More actions
February 10, 2009 at 12:50 pm
#383909
I need to show a textbox with a "Y" or "N" if the difference between 2 dates in my table is <= 1 day.
Anyone help with this?
Changinagain
Jack Corbett
SSC Guru
Points: 184394
February 10, 2009 at 1:03 pm
#941574
Fairly simple:
IIF(DateDiff(DateInterval.Day, Date1, Date2) <= 1, "Y", "N")
Date1 should be the earlier date.
Jack CorbettConsultant - Straight Path SolutionsCheck out these links on how to get faster and more accurate answers:Forum Etiquette: How to post data/code on a forum to get the best help Need an Answer? Actually, No ... You Need a Question
February 10, 2009 at 1:33 pm
#941610
I will give it a try.
Thanks, I needed that in a hurry, got bunches of detail reports to do in real short time and research time is soooo limited.
Thanks again:D:D:D
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply