Record Count

N

Nick

I am trying to count records returned in a sub-form. I was
told from a previous post that this should work;
=[Backlog].Form.RecordsetClone.RecordCount
Backlog, is the sub-form name. It does return a value but
it is not accurate.
I created a text box in the main form and typed it in the
Control Source. I re-query after up-date, the count
changes but is inaccurate.
Can someone point me in the right direction?

Regards
Nick
 
J

Jim Allensworth

I am trying to count records returned in a sub-form. I was
told from a previous post that this should work;
=[Backlog].Form.RecordsetClone.RecordCount
Backlog, is the sub-form name. It does return a value but
it is not accurate.
I created a text box in the main form and typed it in the
Control Source. I re-query after up-date, the count
changes but is inaccurate.
Can someone point me in the right direction?
RecordCount is not reliable until you do a MoveLast on the recordset.

Me.Backlog.Form.RecordsetClone.MoveLast
'Now it will be accurate
Me.Backlog.Form.RecordsetClone.RecordCount


- Jim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top