Re: Fields not required
- From: Bob Quintal <rquintal@xxxxxxxxxxxx>
- Date: Wed, 19 Apr 2006 21:53:29 GMT
"Gordon Youd" <gordon@xxxxxxxxxxxxxxxxx> wrote in
news:e25pic$im5$1$8300dec7@xxxxxxxxxxxxxxxx:
Bob, I still cannot prevent an "InwardTime" showing on anI don't remember exactly What I gave you as code, but If I start
"OutwardDate Customer" or an "OutwardTime" showing on an
"InwardDate Customer".
To put you in the picture, the database is for cars to and
from airports. Pickup a passenger from home at outtime, take
to airport on an outdate. Pickup any intime passengers on the
same date and take them home.
The database holds "CustomerID", OutwardDate", "OutwardTime",
"InwardDate", "InwardTime"
The report I want to create is to see on a particular date,
which customers are going out and which customers are coming
in. I can then see if a driver dropping off a customer could
wait and pick up an incoming passenger.
I open report for the 10/10/2006 and see,
"Mr Brown" going out "10/10/2006", "15:00", coming in
"20/10/2006",
"12:00".
"Mr Green" coming in "10/10/2006", "16:00", going out
"5/10/2006", "09:00"
Mr Brown should not show (coming in "20/10/2006", "12:00")
Mr Green should not show (going out "5/10/2006", "09:00")
Bob, using your SQL, I get the customers going out and in on
the selected date, in the right columns on the report.
I just cannot suppress the wrong info....
Regards, Gordon.
from fresh, here's something that should work at the query.
PARAMETERS
[Date To Report]
SELECT
IIF([InwardDate]= [Date to report], "IN","OUT")
as destination,
CustomerID,
IIF([InwardDate]= [Date to report],[InwardTime],[OutwardTime])
as EventTime
WHERE InwardDate = [Date To Report]
OR OutwardDate = [Date to Report]
ORDER BY
IIF([InwardDate]= [Date to report], 1,2),
IIF([InwardDate]= [Date to report],[InwardTime],[OutwardTime])
Play with that, till you get something you can use.
--
Bob Quintal
PA is y I've altered my email address.
.
- Follow-Ups:
- Re: Fields not required
- From: Gordon Youd
- Re: Fields not required
- References:
- Fields not required
- From: Gordon Youd
- Re: Fields not required
- From: Bob Quintal
- Re: Fields not required
- From: Gordon Youd
- Re: Fields not required
- From: Gordon Youd
- Re: Fields not required
- From: Gordon Youd
- Fields not required
- Prev by Date: Re: User-Specific WorkTables: How to handle MakeTable queries?
- Next by Date: Re: mdb-size and zip-size (zip hardly smaller)
- Previous by thread: Re: Fields not required
- Next by thread: Re: Fields not required
- Index(es):
Relevant Pages
|