G
gadavis1701
I am new to Access and have designed a database by the seat of my
pants.
I have a problem with a database I designed. For each record (called
Product) I am trying to add several fields together (call them Qty1,
Qty2, and Qty3) to get a total (called TotalQty). There may or may not
be values for the Qty fields. If there are no entries for Qty1 and Qty3
but there is for Qty2, I still want the three fields added together for
a total.
For example, here is a table of what I want to accomplish.
Product | Qty1 | Qty2 | Qty3 | TotalQty
A01 | | 40 | | 40
A02............20.......10.........30.......60
However, if there is nothing entered for Qty1 and Qty3 fields I don't
want a zero to be entered by default. It messes up a software
applications that pulls data from this database.
If I remove the zeroes from the Default Value parameter of the table
and from the table entry for Qty1 and Qty3, the query can't add the
fields together and display a result. If there are zeroes, the query
works perfectly.
How can I solve this?
I hope this makes sense.
Any help would be greatly appreciated.
pants.
I have a problem with a database I designed. For each record (called
Product) I am trying to add several fields together (call them Qty1,
Qty2, and Qty3) to get a total (called TotalQty). There may or may not
be values for the Qty fields. If there are no entries for Qty1 and Qty3
but there is for Qty2, I still want the three fields added together for
a total.
For example, here is a table of what I want to accomplish.
Product | Qty1 | Qty2 | Qty3 | TotalQty
A01 | | 40 | | 40
A02............20.......10.........30.......60
However, if there is nothing entered for Qty1 and Qty3 fields I don't
want a zero to be entered by default. It messes up a software
applications that pulls data from this database.
If I remove the zeroes from the Default Value parameter of the table
and from the table entry for Qty1 and Qty3, the query can't add the
fields together and display a result. If there are zeroes, the query
works perfectly.
How can I solve this?
I hope this makes sense.
Any help would be greatly appreciated.