C
C White
Hi
I am having problems with running a query that does the following
there are 5 fields in a table that the query is based on, the first four
are simple enough and all that happens is that the fields need to match,
for that I was able to do the following to get records out of the
database (does that make sense )
In (SELECT [SERIAL_NUM] FROM
As Tmp GROUP BY
[SERIAL_NUM],[SR_SUB_AREA],[DETAIL],[SUB_DETAIL] HAVING Count(*)>1 And
[SR_SUB_AREA] =
.[SR_SUB_AREA] And [DETAIL] =
.[DETAIL]
And [SUB_DETAIL] =
.[SUB_DETAIL])
The fifth field is a date field that is formatted as follows:
"11/08/2004 10:06:04 PM"
what I am having problem with is getting the query to pull the records
that are within 2 days of eachother.
Simply put the query need to pull out the records where the first four
fields match and they were created within 2 days of eachother.
I'm probably using the wrong terms when I try to search for an
answer/tutorial on how to this as I have found nothing to date.
Any help, would be appreciated.
Thanks
I am having problems with running a query that does the following
there are 5 fields in a table that the query is based on, the first four
are simple enough and all that happens is that the fields need to match,
for that I was able to do the following to get records out of the
database (does that make sense )
In (SELECT [SERIAL_NUM] FROM
[SERIAL_NUM],[SR_SUB_AREA],[DETAIL],[SUB_DETAIL] HAVING Count(*)>1 And
[SR_SUB_AREA] =
And [SUB_DETAIL] =
The fifth field is a date field that is formatted as follows:
"11/08/2004 10:06:04 PM"
what I am having problem with is getting the query to pull the records
that are within 2 days of eachother.
Simply put the query need to pull out the records where the first four
fields match and they were created within 2 days of eachother.
I'm probably using the wrong terms when I try to search for an
answer/tutorial on how to this as I have found nothing to date.
Any help, would be appreciated.
Thanks