chancer1967
Excel jockey
- Local time
- Today, 05:48
- Joined
- Mar 31, 2004
- Messages
- 28
I have a database for credit collection. The main table is a list of invoices - invoice number, value, date, etc
From that I produce an aging report, which for each customer gives a balance (sum of invoices), and then 5 aging columns (0-30 days, 31-60, etc)
To do this I have 5 queries, one for each aging band, and then a final query which collates the results into a summary table.
In am not sure whether this is an efficient way of doing it or not, but anyway...
At a later point I have a query that adds the aging data to other data and my problem is this:
the aging columns in my summary table has a lot of blank cells. For example, if a customer owed $100 and it was all in the aging band 31-60 days, the 5 aging columns would show: blank, $100, blank, blank, blank
when my later query adds these to other figures, it seems to decide that a blank + a number = a blank.
what I need is either:
- a way of making access treat a blank as a zero, so that blank + number = number; or
- an easy way of replacing blanks with zeros
I have already tried the second approach but discovered I need a separate update query for each field - so i need 5 queries just to fix the summary table. its all a bit messy.
Hopefully you see what I am after.
Thanks in advance
From that I produce an aging report, which for each customer gives a balance (sum of invoices), and then 5 aging columns (0-30 days, 31-60, etc)
To do this I have 5 queries, one for each aging band, and then a final query which collates the results into a summary table.
In am not sure whether this is an efficient way of doing it or not, but anyway...
At a later point I have a query that adds the aging data to other data and my problem is this:
the aging columns in my summary table has a lot of blank cells. For example, if a customer owed $100 and it was all in the aging band 31-60 days, the 5 aging columns would show: blank, $100, blank, blank, blank
when my later query adds these to other figures, it seems to decide that a blank + a number = a blank.
what I need is either:
- a way of making access treat a blank as a zero, so that blank + number = number; or
- an easy way of replacing blanks with zeros
I have already tried the second approach but discovered I need a separate update query for each field - so i need 5 queries just to fix the summary table. its all a bit messy.
Hopefully you see what I am after.
Thanks in advance
Last edited: