If you have 10 different date fields, there's a very good chance that your
tables are design wrong, which is causing your difficulty. I'm assuming that
your table looks something like below. If so, it is wrong.
ProjectID pDate StartDate DesignDate ProdDate ShipDate
123 1/1/09 2/1/09 3/1/09 4/1/09 5/1/09
What you should have is something like this:
tblProjectDates
ProjectID DateType ProjectDates
123 pdate 1/1/09
123 Start 2/1/09
123 Design 3/1/09
123 Prod 4/1/09
123 Ship 5/1/09
Then the query would be something simple like:
Select *
From tblProjectDates
Where ProjectDates Between [pdate] -30
And [pdate] +1 ;
Actually the above SQL would need to be a little more complicated if you
what to base it on the pdate for that particular ID.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
fgwiii said:
Hello,
I need to create a query that will identify about 10 individual date fields
to see if the dates are: greater than 30 days prior to or 1 day after the
<pdate>.
Any help would be greatly appreciated.
Thanks,
Fred