G
Guest
Hello,
I have a subform in datasheet view and I would like a count of the number of
records displayed in my main form.
I initially tried placing a field in my subform footer with the =Count()
function and setting field in my mainform to =[Forms]![frmSub]![Count], but
this did not work.
Someone suggested using Recordsetclone. So here's my attempt at code:
Me![Count] = Forms!frmSub.RecordsetClone.RecordCount
All this produces is a blank field. Any ideas on where I went wrong, or
someplace to look for more guidance?
Thanks!
Melinda
I have a subform in datasheet view and I would like a count of the number of
records displayed in my main form.
I initially tried placing a field in my subform footer with the =Count()
function and setting field in my mainform to =[Forms]![frmSub]![Count], but
this did not work.
Someone suggested using Recordsetclone. So here's my attempt at code:
Me![Count] = Forms!frmSub.RecordsetClone.RecordCount
All this produces is a blank field. Any ideas on where I went wrong, or
someplace to look for more guidance?
Thanks!
Melinda