Hi There i have created one Report in access 2010 and using the grouping option to see the groupwise report. I have used the detail section to get the data from other tables by using Dlookup. Following is the syntax
i am not getting the result of main group accurately. can anyone help here.
Code:
Jan1.Value = DLookup("[sumofhc]", "[q_mnthlyHCForAttrSU]", "[mainGroup]='" & [Forms]![frm_SuperUserDB]![R_AttrReportSU]![MainGroup] & "'" And [FortheYear] = "&[YearofAttr]&" And [forthemonth] = "&1&")
Comment