Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2002
    Posts
    108

    Unanswered: Is there a way to have code wait until previous line is finished ?

    I sometimes have a problem, like running a complex query that takes a few seconds or starting an external program and the rest of the code runs before the other code gets done.

  2. #2
    Join Date
    Jul 2002
    Posts
    67
    trying using the command "DoEvents"

    Example:
    << This is line of code that takes a few seconds to execute >>
    DoEvents
    << Next line of code >>

    HTH
    Don't do today, what can be done tomorrow.

  3. #3
    Join Date
    Oct 2002
    Location
    Leicester - UK
    Posts
    820
    sounds like you need to uses some higher level thread control and inforchantly i could help you in java but not VB
    Definition of a Beginner, Someone who doesn't know the rules.

    Definition of an Expert, Someone who knows when to ignore the rules.

  4. #4
    Join Date
    Feb 2002
    Posts
    108
    That works !!

    Thanks for your help.

Posting Permissions

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