Results 1 to 2 of 2

Thread: [RESOLVED] Waiting on query results B4 moving on

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2005
    Posts
    90

    Resolved [RESOLVED] Waiting on query results B4 moving on

    Does anyone know how to wait until a querys results display before movin on with the next part of code.

    Query1 Runs
    Result of query populates text1.text
    query 2 runs where Text 1.text is then used as criteria

    Although query1 only takes 2 seconds to populate text1.text, I think the query2 code is running before its there.
    If I msgbox text1.text before the query2 runs it does show the correct data though.

    Any thoughts?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Waiting on query results B4 moving on

    Add a couple of DoEvents
    VB Code:
    1. Query1 Runs
    2. DoEvents
    3. Result of query populates text1.text
    4. DoEvents
    5. query 2 runs where Text 1.text is then used as criteria

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