B
bezz
I have a query which determines the status of documents. This can be one of about 8 different states, Under Evaluation, Draft, Not
Written etc. I am using a crosstab query to correlate the data as so many documents belong to group R, Group S, Group P etc.
I have already written a routine to check a table, if the status has already been saved, delete and append new stats, or if not yet
saved just append, so I can develop a glide path from the stats by group.
The problem is, there may be some weeks when no documents are at a status, for example none of them may be Under Evaluation, so
when appending to the table I will get an error as the fieldname will not exist?
Is there a simple way to generate all the required table names such that the crosstab will insert the contents as zero if there are
none, or do I need to use a combination of count and insert into named fields in the storage table?
Thanks
JBN
Written etc. I am using a crosstab query to correlate the data as so many documents belong to group R, Group S, Group P etc.
I have already written a routine to check a table, if the status has already been saved, delete and append new stats, or if not yet
saved just append, so I can develop a glide path from the stats by group.
The problem is, there may be some weeks when no documents are at a status, for example none of them may be Under Evaluation, so
when appending to the table I will get an error as the fieldname will not exist?
Is there a simple way to generate all the required table names such that the crosstab will insert the contents as zero if there are
none, or do I need to use a combination of count and insert into named fields in the storage table?
Thanks
JBN