Results 1 to 4 of 4
  1. #1
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295

    Form not refresh, Access Not Respond when code running

    Hi All,

    I always get a frozen form when the code is running, although my code keeps updating the message (textbox) in the form, the updates are not showed and Access is "Not Responding".

    is there a way to show the updates? It's so boring waiting for a non reponding window.



    I tried refresh, repaint, sleep(API), but could not get it work.

    what else should I do?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Try DoEvents. I think it will work, though it can slow things down a bit. I've used SysCmd as an alternative to the textbox approach with success.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    DoEvents works fine.

    Thank you, Pbaldy.

  4. #4
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    I found some negative aticle about DoEvents, so I tried SysCmd, but SysCmd froze too. Maybe you mean that you used DoEvents with SysCmd?!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. update/refresh form
    By SlowPoke in forum Access
    Replies: 3
    Last Post: 09-20-2010, 09:21 AM
  2. refresh a form
    By RedGoneWILD in forum Forms
    Replies: 18
    Last Post: 09-03-2010, 08:31 AM
  3. Access 2003 code vs Access 2007 Code
    By ralphjramirez in forum Access
    Replies: 5
    Last Post: 11-23-2009, 12:33 PM
  4. Error excel refresh from access
    By goyal in forum Access
    Replies: 0
    Last Post: 06-10-2009, 10:59 AM
  5. Refresh form search text box
    By oxicottin in forum Forms
    Replies: 2
    Last Post: 11-19-2007, 02:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums