S
steve carpineta
I have tables set up to handle relationships for hot air
balloon flights. I have a query which searches for "non-
full" flights by counting the passengers in each flight,
then comparing that count with a field in the flights
table for that flight called "capacity," an integer which
tells us how many people the balloon can seat.
So for instance, if flight 1000's capacity is 6, and it
only has four passengers seated, the query includes this
record because it is "non full." THe formula is
basically the following in the criteria line of
the "COUNT OF PASSENGERS" count result: <[Flights].
[Capacity]
The query works great, except for that flight records
where there are no passengers are not included. I do not
understand whether the result of the count of passengers
is 0, null, or whatnot in cases where there are no
passengers. It would seem that the formula would still
work. I tried adding zero-length strings and isNull to
the criteria so that in case the count was returning
these values, they'd be included, but to no avail. In
fact, a zero length string gave me a data type mismatch
error and thus i couldn't try it.
I'd appreciate any help that anyone can give me, and
thanks for reading!
-Steve
balloon flights. I have a query which searches for "non-
full" flights by counting the passengers in each flight,
then comparing that count with a field in the flights
table for that flight called "capacity," an integer which
tells us how many people the balloon can seat.
So for instance, if flight 1000's capacity is 6, and it
only has four passengers seated, the query includes this
record because it is "non full." THe formula is
basically the following in the criteria line of
the "COUNT OF PASSENGERS" count result: <[Flights].
[Capacity]
The query works great, except for that flight records
where there are no passengers are not included. I do not
understand whether the result of the count of passengers
is 0, null, or whatnot in cases where there are no
passengers. It would seem that the formula would still
work. I tried adding zero-length strings and isNull to
the criteria so that in case the count was returning
these values, they'd be included, but to no avail. In
fact, a zero length string gave me a data type mismatch
error and thus i couldn't try it.
I'd appreciate any help that anyone can give me, and
thanks for reading!
-Steve