G
Gregorio
Access 2000
Win XP Pro
Relevant References: VBA, Access 9.0 Object Library, ActiveX Data Objects
2.6, DAO 3.6
Hi, I am trying the 'sum' operator in code against a field in a recordset
object. The code has done it's job for a year, but if I want to apply a sum
to it I get a compile error 'Sub or Function not defined'.
Code below. Any ideas? Thanks - Greg
Set frm = frmReferrer
With frm
Set ctl = frm.Controls(sCell)
ControlValue = (rst("Total"))
ctl.Value = ControlValue
Win XP Pro
Relevant References: VBA, Access 9.0 Object Library, ActiveX Data Objects
2.6, DAO 3.6
Hi, I am trying the 'sum' operator in code against a field in a recordset
object. The code has done it's job for a year, but if I want to apply a sum
to it I get a compile error 'Sub or Function not defined'.
Code below. Any ideas? Thanks - Greg
Set frm = frmReferrer
With frm
Set ctl = frm.Controls(sCell)
ControlValue = (rst("Total"))
ctl.Value = ControlValue