G Guest Jul 9, 2007 #1 I want to compare DateReleased to DateNextAppt (both are date fields) then I need to get => 15 days. Please help me KT
I want to compare DateReleased to DateNextAppt (both are date fields) then I need to get => 15 days. Please help me KT
J Jeff Boyce Jul 9, 2007 #2 Kim See Access HELP for the DateDiff() function, which you can use in a query to subtract two dates. You could even use something like: [DateNextAppt] - [DateReleased] to create a new field in your query, and use: => 15 in the selection criterion. Regards Jeff Boyce Micosoft Office/Access MVP
Kim See Access HELP for the DateDiff() function, which you can use in a query to subtract two dates. You could even use something like: [DateNextAppt] - [DateReleased] to create a new field in your query, and use: => 15 in the selection criterion. Regards Jeff Boyce Micosoft Office/Access MVP
G Guest Jul 9, 2007 #3 You can use the DateDiff function to get the different between the two dates, and then add the criteria Select * From TableName Where DateDiff("d",DateReleased , DateNextAppt ) >= 15
You can use the DateDiff function to get the different between the two dates, and then add the criteria Select * From TableName Where DateDiff("d",DateReleased , DateNextAppt ) >= 15