R
Ray
I have 6 make table queries that run consecutively from a macro. What they
do is count individual member types all from the same table and create
individual tables with one row containing the type and the count.
I have a separate query used as a data source for a report that pulls all
the types and counts in.
This last query has no criteria, it just deaws every type and count in
example like this
Col1
Tableaid Ordinary
Type: OR
Count of Type: 54
Col1
TableUnpaidaid Ordinary
Type: OR
Count of Type: 21
etc for 5 member types
My problem is this.
If the make table query finds no records that match the criteria, it does
not create a row in the destination table but just creates an empty table.
Then when the separate cumulatibe query runs, it crashes bevause there is no
data in the
TableUnpaidaid Ordinary
Type: OR
Count of Type: 21
column.
I have tried using criteria around NULL and NOT NULL but since there is no
record at all this does not work.
1. How can I get the Make Table query to creat a record with a "0" count?
OR
2. How can I make the cumulative query use a "0" count if no record exists?
Any help appreciated.
Ray
do is count individual member types all from the same table and create
individual tables with one row containing the type and the count.
I have a separate query used as a data source for a report that pulls all
the types and counts in.
This last query has no criteria, it just deaws every type and count in
example like this
Col1
Tableaid Ordinary
Type: OR
Count of Type: 54
Col1
TableUnpaidaid Ordinary
Type: OR
Count of Type: 21
etc for 5 member types
My problem is this.
If the make table query finds no records that match the criteria, it does
not create a row in the destination table but just creates an empty table.
Then when the separate cumulatibe query runs, it crashes bevause there is no
data in the
TableUnpaidaid Ordinary
Type: OR
Count of Type: 21
column.
I have tried using criteria around NULL and NOT NULL but since there is no
record at all this does not work.
1. How can I get the Make Table query to creat a record with a "0" count?
OR
2. How can I make the cumulative query use a "0" count if no record exists?
Any help appreciated.
Ray