Results 1 to 4 of 4

Thread: [RESOLVED][MS ACCESS]Refresh form?

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    13

    Resolved [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
    Last edited by Eld0; Jun 9th, 2006 at 01:43 AM.

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: [MS ACCESS]Refresh form?

    Add

    VB Code:
    1. DoEvents

    after each add to the listbox... that should allow the screen to catch up...
    (sometimes u need to add 2 DoEventsoEvents)
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    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.

    VB Code:
    1. Me.Repaint
    Declan

    Don't forget to mark your Thread as resolved.
    Take a moment to rate posts that you think are helpful

  4. #4

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    13

    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.

    VB Code:
    1. Me.Repaint
    thanx dude, it works like a charm now.
    That I overlooked this, I feel so n00bish

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width