Link to home
Start Free TrialLog in
Avatar of SteveL13
SteveL13Flag for United States of America

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.TranxDate" is between Forms!frmSelectDatesForHRreport.txtStart and Forms!frmSelectDatesForHRreport.txtEnd

Note that the criteria uses a separate table.field.  Also, I know this syntax is wrong.

Can this be done?
ASKER CERTIFIED SOLUTION
Avatar of Jeffrey Coachman
Jeffrey Coachman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial