ms access - Calculated Control with Dynamic Date criteria -
i trying pass value text box on access form code
dsum(" [ctrtable]![count of ctrs] ", "ctrtable", "[metric]= 'total contractors in rpt (all)' , [date] = dmax("[date] ","ctrtable"),'mm/dd/yyy')" ) this sums number of contractors metric "total contractors in rpt (all)" @ whatever maximum date in report. imagine going around counting number of contractors on worksite every week. want box give latest count.
i have made work number of other criteria cannot clear answer on syntax dates.
thanks
you have mistakes, try this:
dsum("[count of ctrs]", "ctrtable", "([metric]= 'total contractors in rpt (all)') , ([date] = dmax(""[date]"",""ctrtable""))")
Comments
Post a Comment