J
Jess Wundring
I'm trying to use dcount to give me the count of a subset of records. It's
always returning a count of ALL the records in the table.
For example,
myCount = DCount("[caseid]", "tblCaseCharges", """[caseid] = '" & ID &
"'""")
MsgBox "myCount = " & myCount & " and " & """[caseid] = '" & ID & "'"""
displays this in the message box:
myCount = 7 and "[caseid] = '8"'
where 7 is actually the TOTAL number of records in the table. FWIW, caseid
is defined as a long int. I've been banging my head against the wall (and the
keyboard) on this. Please help if you can...
And Thanks
always returning a count of ALL the records in the table.
For example,
myCount = DCount("[caseid]", "tblCaseCharges", """[caseid] = '" & ID &
"'""")
MsgBox "myCount = " & myCount & " and " & """[caseid] = '" & ID & "'"""
displays this in the message box:
myCount = 7 and "[caseid] = '8"'
where 7 is actually the TOTAL number of records in the table. FWIW, caseid
is defined as a long int. I've been banging my head against the wall (and the
keyboard) on this. Please help if you can...
And Thanks