Update query not updating

coyote

Registered User.
Local time
Today, 09:33
Joined
Oct 8, 2007
Messages
149
As a part of an Inventory/Accounting system I have a table called tblAccounts with fields AccountID, AccountName and CurrentBalance.
The accounts are
AccountID AccountName CurrentBalance
1 Accounts Receivable 10,000.00
2 Cash at hand

I also have a table called InvoicePayment with fields PayID, PayDate, AccountID, AccountAdd,AmountPaid.
I have created 2 update queries. The first query is supposed to reduce the amount in AccountReceivable. The second query is supposed to add that amount to Cash at hand.

The problem is when i run the queries the first query reduces the amount but the second query does not add it to the account.
What am i doing wrong.
 
As a part of an Inventory/Accounting system I have a table called tblAccounts with fields AccountID, AccountName and CurrentBalance.
The accounts are
AccountID AccountName CurrentBalance
1 Accounts Receivable 10,000.00
2 Cash at hand

I also have a table called InvoicePayment with fields PayID, PayDate, AccountID, AccountAdd,AmountPaid.
I have created 2 update queries. The first query is supposed to reduce the amount in AccountReceivable. The second query is supposed to add that amount to Cash at hand.

The problem is when i run the queries the first query reduces the amount but the second query does not add it to the account.
What am i doing wrong.
Well i have cracked it since i was updating records in the same table and the relationship was using the AccountID in both queries, i changed the relationship to AccountAdd in the second query and it works. Thanks
 

Users who are viewing this thread

Back
Top Bottom