SteveL13
asked on
DSum values problem
On a report I am trying to use VBA code to sum hours on a text field in the onprint event of the report.
Here is what I'm attempting to write:
Me.txtGrp1RegHrs = DSum("RegHrs", "tblTimeCardTranxDetail", "tblTimeCardTranxHeader.Tr anxDate" is between Forms!frmSelectDatesForHRr eport.txtS tart and Forms!frmSelectDatesForHRr eport.txtE nd
Note that the criteria uses a separate table.field. Also, I know this syntax is wrong.
Can this be done?
Here is what I'm attempting to write:
Me.txtGrp1RegHrs = DSum("RegHrs", "tblTimeCardTranxDetail", "tblTimeCardTranxHeader.Tr
Note that the criteria uses a separate table.field. Also, I know this syntax is wrong.
Can this be done?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
;-)