[RESOLVED][MS ACCESS]Refresh form?
I wrote some procedures which handles each a seperate unit.
When a procedure finishes, I want to write an entry to listbox 'lbLogbook' so the users sees what's happening. But the entries in the listbox all appear at once when all the procedures are finished.
When I go into break-mode and go step-by-step then I see the listbox filling up like it's supposed to be. Do I have to manually refresh the form or so?
Calling the requery method of the listbox doesn't do anything. I got the same problem with a textbox, it only showed a value when the procedures are finished not during. Anybody?
Regards,
Eld0
Re: [MS ACCESS]Refresh form?
Add
after each add to the listbox... that should allow the screen to catch up...
(sometimes u need to add 2 DoEvents:DoEvents)
Re: [MS ACCESS]Refresh form?
Every time you write a new line to the listbox you should call the Repaint method of the Form that contains the listbox. This will refresh the screen image of the form all all its controls - thereby showing the additional lines.
Re: [MS ACCESS]Refresh form?
Quote:
Originally Posted by DKenny
Every time you write a new line to the listbox you should call the Repaint method of the Form that contains the listbox. This will refresh the screen image of the form all all its controls - thereby showing the additional lines.
thanx dude, it works like a charm now.
That I overlooked this, I feel so n00bish :blush: