Tim L
Registered User.
- Local time
- Today, 01:50
- Joined
- Sep 6, 2002
- Messages
- 414
I've got a form where I've used a text box and the OnCurrent event to display the current record number and recordsetcount. When I open the form from the forms dialogue everything is fine however the form is opened from the menu form I get "1 of 1" when I know that more than 1 records exist; a change of record, to 2 or the end of the recordset updates the display correctly.
I noticed that on opening the form there is sometimes a delay, "calculating", so I placed code in the OnTimer event to update the text box (then cancels itself so that it doesn't hog the processor), this works but is a fudge. Also, if the dB is used on a slower machine the OnTimer event may not be in time.
So:
1. Is it really the 'calculating' that is preventing the text box being correctly updated?
2. Is it possible to detect when the calculating has completed so that I can then update the text box accordingly and if so, how? For instance, I would like to put a message box on the screen informing the user that calculations are in progress and then update the text box and close it on completion. (User's don't always look at the status bar do they )
Tim
I noticed that on opening the form there is sometimes a delay, "calculating", so I placed code in the OnTimer event to update the text box (then cancels itself so that it doesn't hog the processor), this works but is a fudge. Also, if the dB is used on a slower machine the OnTimer event may not be in time.
So:
1. Is it really the 'calculating' that is preventing the text box being correctly updated?
2. Is it possible to detect when the calculating has completed so that I can then update the text box accordingly and if so, how? For instance, I would like to put a message box on the screen informing the user that calculations are in progress and then update the text box and close it on completion. (User's don't always look at the status bar do they )
Tim