P
pjluckyman
I'm trying to use a group of combo boxes to select a count of a query in a
form or report.
Currently I have three variables on the form I want to use and have a text
box show the counts of instances within a particular query.
=DCount("[MXGPC-WKCTR STRIPPED] & [DAFSC] &
[ACT-GR]","qry4monthprojectionloss","[MXGPC-WKCTR STRIPPED] =
'rptfrm.form![1st Workcenter]' and [ DAFSC]='rptfrm.form![1st DAFSC]' and
[ACT-GR]= 'rptfrm.form![ACT-GR1]'")
If I replace the form refrences (rptfrm.fomr![1st Workcenter]) with specific
criteria (AMXS) it will do the count and display the number of occurances.
What am I doing wrong in my expression that it will not use the comboboxes?
I'm not worried about the names of the combo boxes if I need to change them
Help......
form or report.
Currently I have three variables on the form I want to use and have a text
box show the counts of instances within a particular query.
=DCount("[MXGPC-WKCTR STRIPPED] & [DAFSC] &
[ACT-GR]","qry4monthprojectionloss","[MXGPC-WKCTR STRIPPED] =
'rptfrm.form![1st Workcenter]' and [ DAFSC]='rptfrm.form![1st DAFSC]' and
[ACT-GR]= 'rptfrm.form![ACT-GR1]'")
If I replace the form refrences (rptfrm.fomr![1st Workcenter]) with specific
criteria (AMXS) it will do the count and display the number of occurances.
What am I doing wrong in my expression that it will not use the comboboxes?
I'm not worried about the names of the combo boxes if I need to change them
Help......