Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying Subform Totals

Status
Not open for further replies.

abbyanu

IS-IT--Management
Jan 18, 2001
82
US
Hi folks

I have two linked tables (1 to many relationship or parent and child), and using a form and a subform to input data into both tables. The tables are: purchase invoices (main form) and purchases (subform), with several purchase records linked to one invoice number.

I wish to display the subtotal of the subform, i.e. the total of the purchases within an invoice, in a textbox on the data entry form for verification purposes. How can I do this? Please help.
 
Your textbox could use the DSum function to go and look at the table with the data (purchases) and add up the values. The only issue is you'll have to issue a requery command on that text box whenever you change data in the subform so the data gets updated when changes are made.

HTH Joe Miller
joe.miller@flotech.net
 
I'm new to Access programming... I tried the DSUM function and I ain't see nothing... please help.
 
Do you have an email address that I can email a DB to? I have a very small sample of how to do exactly what you're looking for..

Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top