karatelung
Registered User.
- Local time
- Yesterday, 21:39
- Joined
- Apr 5, 2001
- Messages
- 84
I have a subform, "subfrmTraining," which has an unbound text box in the
footer, "txtTotalHrs" with the data source "=Sum([Hrs])" to give me the
total hours.
The form, "frmFosterInfo", has a text box, "Text35," with the data source
"=[subfrmTraining].Form!txtHrsTotal" which gives me the Sum of [Hrs] showing
in the subform.
My problem is that I want two more unbound text boxes on the form that Sum
only certain records in the subform. One text box should Sum only the [Hrs]
with [DateTraining] between [CurrentLicenseDate] and [LicenseReview] dates.
The other should Sum only the [Hrs] with [DateTraining] > [LicenseReview].
subfrmTraining contains the fields: [DateTraining] and [Hrs]
frmFosterInfo contains the fields: [CurrentLicense] and [LicenseReview]*
*[LicenseReview] is an unbound text box that displays the date one year
greater than the date in [CurrentLicense]. For the OnCurrent event in
frmFosterInfo I have Me.LicenseReview = DateAdd("yyyy", 1,
Me.CurrentLicensce).
Hopefully I explained this well enough.
Help on this matter is greatly appreciated. I'm sure the pros in this group
can figure this out about 1000x faster than I can.
TIA,
Richard Bernacki
footer, "txtTotalHrs" with the data source "=Sum([Hrs])" to give me the
total hours.
The form, "frmFosterInfo", has a text box, "Text35," with the data source
"=[subfrmTraining].Form!txtHrsTotal" which gives me the Sum of [Hrs] showing
in the subform.
My problem is that I want two more unbound text boxes on the form that Sum
only certain records in the subform. One text box should Sum only the [Hrs]
with [DateTraining] between [CurrentLicenseDate] and [LicenseReview] dates.
The other should Sum only the [Hrs] with [DateTraining] > [LicenseReview].
subfrmTraining contains the fields: [DateTraining] and [Hrs]
frmFosterInfo contains the fields: [CurrentLicense] and [LicenseReview]*
*[LicenseReview] is an unbound text box that displays the date one year
greater than the date in [CurrentLicense]. For the OnCurrent event in
frmFosterInfo I have Me.LicenseReview = DateAdd("yyyy", 1,
Me.CurrentLicensce).
Hopefully I explained this well enough.
Help on this matter is greatly appreciated. I'm sure the pros in this group
can figure this out about 1000x faster than I can.
TIA,
Richard Bernacki