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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating Calculated report totals /Fields to Table

Status
Not open for further replies.

pcdaveh

Technical User
Sep 26, 2000
213
US
Has anyone ever Updated Calculated report totals /Fields to Table or an array? Can anyone lead me to some on-line documentation on how to accomplish this.

Thanks in advance

pcdaveh
 
The record source in a report is read only. If you want to update totals in the table you will have to open the record and write back to it. I'd be inclined to do this with a sql update. I also have a domain write function that I could give you if you want it.

If you want to store your totals to an array you'll have to dim your array before the report runs, in the declarations section, perhaps in the OnOpen event, then write to it with each total, in other words in the Print event of where ever the total is. Don't forget to process the array before the report closes or you'll lose it. Alternatively you could dim the array in a database module as opposed to the report module. You should be able to find information on working with arrays in Access help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top