Hi,
This is the second time I have come against this problem. I know how to make it work, but there has to be a more logical way:
Simple Invoice database. Three table: Customer, Invoices, Payments. To create the Invoice report I: sum(Invoices) - sum(Payments) to find money owed. I do the opposite to find any credit that might exist. Works great!
Except when you enter a new customer. Since no payments exist for that Customer, when the quieres run they come back with: ERROR.
I have worked around this in an inventory DB by appending a record into the table with a 0 amount. And that works, but I don't think that having incorrect entries into a table is a good thing, especially with count functions.
As anyone come across this problem, and if so, how did you address it?
This is a DB that is in the final testing stages and I Really! want to finish it already!!
Thanks!!!
dakcg
This is the second time I have come against this problem. I know how to make it work, but there has to be a more logical way:
Simple Invoice database. Three table: Customer, Invoices, Payments. To create the Invoice report I: sum(Invoices) - sum(Payments) to find money owed. I do the opposite to find any credit that might exist. Works great!
Except when you enter a new customer. Since no payments exist for that Customer, when the quieres run they come back with: ERROR.
I have worked around this in an inventory DB by appending a record into the table with a 0 amount. And that works, but I don't think that having incorrect entries into a table is a good thing, especially with count functions.
As anyone come across this problem, and if so, how did you address it?
This is a DB that is in the final testing stages and I Really! want to finish it already!!
Thanks!!!
dakcg