Hello,
Again, I'm just going on my best guess of what's happening.
I guess that you are putting the applicable payment/credit into the same
record as the invoice. And i'm assuming that you have NO DB linkage from
the credit card table to the invoices table. If this assumption is wrong,
that changes some things.
My A/R idea would take a fundamental restructuring of your tables. Here's
the broad brush (via the Fred LOW TECH armchair method) if you are
interested:
1. Save a backup copy or two of your database & everything
2. Add a "description" field to your table.
2.1 Undo the PK status of your PK field
3. Add a "closed" field, and load a "Y" in it for all invoices which are
exactly zeroed out
4. Copy your original Table1 to Table2
5. In Table1 wipe out all records (if any) that don't have an invoice
amount
6. In Table 1 Rename the InvoiceAmount field to "Amount", and delete the
"CreditAmount " field
7. In Table 2 wipe out all fields that don't have a CreditAmount
8. In table 2 If "CreditAmount" doesn't already have the opposite
mathematical sign as "InvoiceAmount", mathematically invert it.
9. In table 2 change the "CreditAmount" field name to "Amount"
10. Append table 2 into table 1
11. Add an autonumber field "EntryNumber" and make it the PK.
For your creti card charge details, you'll either "squeeze" them into the
fields in this table (description etc.) or put them into a seperate linked
"CreditChargeDetails" table.
Well, that might make a mess out of things, but I think it will give you a
solid foundation for doing everything that you describe.
Sincerely,
Fred
the bp Guy said:
My post didn't go through so will try again. I have kinda got hung up on
invoice statement is a better choice of words the a/r ledger would be a great
solution if I would be able to get data from the two tables that I now get
the info for what I am doing. The query that I use now is
[tblinvoice](Invoicedate,customer,invoice#,Invoiceamount,creditamount)
and [tblcreditcard](customer,creditcarddate,Gross,fee,net)
the problem I run into in this query that the invoicedates and credit card
dates are not equal. If I could make a table from this query to get a/r
ledger I could see where I could list this in a statement. The relationships
of the two tables seems to be a problem as it is now.
Hopefully I am not adding more confusion to this .
Fred said:
Your second post provided additional insight, but did not provide the
"structure of data" type info that would be needed to solidly spec a
solution.
So I'm taking a guess here.
If I may be direct in a crucial area, your second posts seems to continue
the confusion between invoicing and statements.
If this is a double check on another system, then the invoicing ACT might be
occurring in that system. In that case it gets simpler. Then just set up
the described A/R ledger. Then you should be able to do any or all of that
in reports. For example, if your group by the customer ID, and run a
subtotal of all of their items, that subtotal will be the net amount owed.
You could put a page break with the grouping in which cashe you'll print one
page (+) per customer.
Maybe / hopefully this helps a little
Sincerley,
Fred