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

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -