C
Cmenkedi
Hello,
I am hiving trouble with recordsetclone.
I have a form that I open and want to display the number of records. The
code that I am using is:
Set rst = Me.RecordsetClone
Me.txtRecordNumber = Me.CurrentRecord
Me.txtRecords = rst.RecordCount & " record" & IIf(rst.RecordCount = 1, "",
"s")
The txtRecords box will only show 1 record when there is more then one. The
wierd part of this problem is that if I go into debug and go line by line
through code it works perfectly. I am at a loss as to why it doesn't work.
I have it on 2 forms and neither works.
thank you
I am hiving trouble with recordsetclone.
I have a form that I open and want to display the number of records. The
code that I am using is:
Set rst = Me.RecordsetClone
Me.txtRecordNumber = Me.CurrentRecord
Me.txtRecords = rst.RecordCount & " record" & IIf(rst.RecordCount = 1, "",
"s")
The txtRecords box will only show 1 record when there is more then one. The
wierd part of this problem is that if I go into debug and go line by line
through code it works perfectly. I am at a loss as to why it doesn't work.
I have it on 2 forms and neither works.
thank you