T
Tiffany Pugh
I have form [frmServiceInfo] in which I have entered a
text box with the following control source:
=DSum("[Service Hours]","[qryServiceInfo]","[EEID]=Forms!
[frmServiceInfo]![EEID] And [Year]<=Forms![frmServiceInfo]!
[Year]")
This is creating a running sum of the service hours for
each employee entered. IT WORKS!!! However when I use
this form as a subform of another form [frmEmplInfo], the
calculation no longer works. I recieve #Error in the text
box results.
The form [frmEmplInfo] has and individual record for each
employee id (the primary key), but the subform
[frmServiceInfo] has multiple records for each employee id
and lists out the service hours for each employee for
every year they worked.
Any ideas on why it works as a free standing form
[frmServiceInfo], but not as a subform [frmServiceInfo].
text box with the following control source:
=DSum("[Service Hours]","[qryServiceInfo]","[EEID]=Forms!
[frmServiceInfo]![EEID] And [Year]<=Forms![frmServiceInfo]!
[Year]")
This is creating a running sum of the service hours for
each employee entered. IT WORKS!!! However when I use
this form as a subform of another form [frmEmplInfo], the
calculation no longer works. I recieve #Error in the text
box results.
The form [frmEmplInfo] has and individual record for each
employee id (the primary key), but the subform
[frmServiceInfo] has multiple records for each employee id
and lists out the service hours for each employee for
every year they worked.
Any ideas on why it works as a free standing form
[frmServiceInfo], but not as a subform [frmServiceInfo].