#Name in Forms

M

Michael Wong

I have a form which contains a textbox with the following Control Source:

="(" & Format(FProductsSub.Form.RecordsetClone.RecordCount,"#,##0") &
IIf(FProductsSub.Form.RecordsetClone.RecordCount<=1," item"," items") & "):"

It used to work until I reinstalled my PC from 0.

In the immediate window (as suggested by Allen Browne in
http://groups.google.com/group/micr...ess.formscoding&rnum=1&hl=en#18021b631eceaddb)

it works also, I just needed to add Forms.Products. (which is the main
form):

FProductsSub.Form.RecordsetClone.RecordCount

I checked the Refrences and DAO, ADO are there.

Have I missed something (References, Access's Options)?
 

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