try cascase update
Main Topics
Browse All TopicsHere are the two tables:
The first table is "Customer File"
ID Number First Name Last Name Account Balance
1 JOHN CARTER $0.00
2 CHRIS HARRIS $0.00
3 BRANDY HOPKINS $0.00
4 MYA LONG $0.00
5 DANIEL WILLIAMS $0.00
6 FAY DIXON $0.00
7 ANN YOUNG $0.00
8 NORMA JACKSON $0.00
9 MARK RED $0.00
10 MICHEAL WAYNE $0.00
The Second Table is "Transaction File"
Transaction Number ID Number Product Description Payment Amount
156 2 BOOTS $30.00
203 4 COVER $52.32
212 2 SOCKS $52.65
232 1 TABLE $65.59
298 8 COAT $5.98
362 9 DRESS $54.52
471 7 T-SHIRT $9.99
545 3 CHAIRS $14.95
568 10 SKIRT $16.75
587 6 JEANS $51.47
622 1 SHOES $11.02
654 5 JACKET $22.88
I have a query "Total Amount:"
ID Number Last Name SumOfPaymentAmount
1 CARTER $76.61
2 HARRIS $82.65
3 HOPKINS $14.95
4 LONG $52.32
5 WILLIAMS $22.88
6 DIXON $51.47
7 YOUNG $9.99
8 JACKSON $5.98
9 RED $54.52
10 WAYNE $16.75
I need the "Account Balance" field in "Customer File" table updated with the sum of fields related to the customer as show in the "Total Amount" Query. I have done access for 3 years and I still can't figure this out! Help!
I know that you need to use an update query somehow, but I don't know how.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I decided just to make a button to do what I need. It's the only way I know how.
' Initialize database variables
Dim strQuery As String
Dim rsResult As ADODB.Recordset
' Clear current database
strQuery = "SELECT SumOfPaymentAmount FROM [Total Amount] WHERE [ID Number] = " & Customer_File_OrderID
Set rsResult = CurrentProject.Connection.
Account_Balance = rsResult(0)
Business Accounts
Answer for Membership
by: mcmonapPosted on 2005-02-03 at 13:01:43ID: 13219285
Hi HackLife,
om/default .aspx?scid =kb;en- us; 116142
How bizarre! After much frustration resorted to the web and found this - it would seem that it is a design limitation of access that you cannot do what you want in a single transaction:
http://support.microsoft.c