Microsoft Access 2007 RecordsetClone doesn't work

  • Thread starter Thread starter samhck2
  • Start date Start date
S

samhck2

I am using this code : [Form].[RecordsetClone].[RecordCount]
But, version 2007 has this error : #Name?
can someone help???

Millions thanks.

regards, sam
 
That's not valid syntax in any version of Access.

You need either

Forms!NameOfForm.RecordsetClone.RecordCount

or

Me.RecordsetClone.RecordCount
 
[Form].[RecordsetClone].[RecordCount] used to work as part of a control's
control source, but if you check Allen Browne's list of new bugs in Access
2007, it doesn't work in A2007. Me.RecordsetClone.RecordCount still works in
VBA, so his suggestion is to use a function as the control's control source
and put the calculation in the function.

Douglas J. Steele said:
That's not valid syntax in any version of Access.

You need either

Forms!NameOfForm.RecordsetClone.RecordCount

or

Me.RecordsetClone.RecordCount

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


I am using this code : [Form].[RecordsetClone].[RecordCount]
But, version 2007 has this error : #Name?
can someone help???
 
That's not valid syntax in any version of Access.

You need either

Forms!NameOfForm.RecordsetClone.RecordCount

or

Me.RecordsetClone.RecordCount

--
Doug Steele, Microsoft Access MVPhttp://I.Am/DougSteele
(no e-mails, please!)




I am using this code : [Form].[RecordsetClone].[RecordCount]
But, version 2007 has this error : #Name?
can someone help???
Millions thanks.
regards, sam- Hide quoted text -

- Show quoted text -

Thanks Doug Steele.
 
[Form].[RecordsetClone].[RecordCount] used to work as part of a control's
control source, but if you check Allen Browne's list of new bugs in Access
2007, it doesn't work in A2007. Me.RecordsetClone.RecordCount still works in
VBA, so his suggestion is to use a function as the control's control source
and put the calculation in the function.



That's not valid syntax in any version of Access.
You need either
I am using this code : [Form].[RecordsetClone].[RecordCount]
But, version 2007 has this error : #Name?
can someone help???- Hide quoted text -

- Show quoted text -

Thanks Paul. I write the code in VBA, it works.
 

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

Back
Top