Thanks a lot Al Campagna!
First of all, I would like to focus this senerio:
There's some records in the form, and deleted by other user/form/machine.
I
refresh the current form manually by clicking F5 or Refresh, get an empty
form.
I tried your form, it works on your form but doesn't work on mine. After
investigation, I found the reason is: Your form allowed to Add new record,
for mine, Addition is not allowed. I then change your form to Addition is
forbidden, it doesn't work as well.
I tried similar things before, which is I put a textbox, and put
'=MyFunc()'
to the datasource field. IT'S NEVER BEEN CALLED IF THERE'S NO RECORDS.
I was stucked here for 2 days!!!!!!
Al Campagna said:
Tony,
On my website (below), I have a sample 97 and 2003 file called Record
Statistics.
It shows how to display...
CurrentRecord# "of" RecordsetCount "of" TableCount
If I was on the 10th record of 500, it would display...
10 of 500 of 500
If I filter the form, and get 200 records back, and am on recoird 5,
it
would display...
5 of 200 of 500
That should update on Refresh or F5.
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html
"Find a job that you love... and you'll never work a day in your
life."
Maybe I didn't state clearly in my previous thread.
Let's make it simple.
In a continues form, when user press [F5] or the button [refresh] on
the
ribbon, and the records count changed, Is there a way to know that?
Any clues would be appreciated.
Tony.