stormin_norm
Registered User.
- Local time
- Today, 10:07
- Joined
- Apr 23, 2003
- Messages
- 213
I am getting a "delay" in calculating a sum because the dsum is performing the requery before the new data is stored in the database.
Is there a way to get the requery to run AFTER the data is written to the DB? Should I throw in another requery on the form, not just the field level?
background:
Transfer student has records in 2 table: College and Course which contain the name of the colleges the student attended and the courses they transferred from each. The user can enter how many credits to transfer into "english", "Math", etc...
So when you want to put in three credits for a course it will total on the subform correct, but on the main form it does not dynamically sum.
My main form is linked to the college and subform to the courses taken at that college.
On the main form is a field for totaling ALL credits for ALL colleges attended (dsum).
subform field: [ENGhours] afterupdate=[Forms]![frmCollegeCourse]![ENGtotal].Requery
subform field: [ENGsubtotal] =Sum([ENG hours])
main form field: [ENGtotal] controlsource=DSum("[ENG hours]","qryCourse","[qryCourse.StudentID] = " & [StudentID])
Is there a way to get the requery to run AFTER the data is written to the DB? Should I throw in another requery on the form, not just the field level?
background:
Transfer student has records in 2 table: College and Course which contain the name of the colleges the student attended and the courses they transferred from each. The user can enter how many credits to transfer into "english", "Math", etc...
So when you want to put in three credits for a course it will total on the subform correct, but on the main form it does not dynamically sum.
My main form is linked to the college and subform to the courses taken at that college.
On the main form is a field for totaling ALL credits for ALL colleges attended (dsum).
subform field: [ENGhours] afterupdate=[Forms]![frmCollegeCourse]![ENGtotal].Requery
subform field: [ENGsubtotal] =Sum([ENG hours])
main form field: [ENGtotal] controlsource=DSum("[ENG hours]","qryCourse","[qryCourse.StudentID] = " & [StudentID])