Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2007
    Posts
    49

    Unanswered: Run two Query at the same time when press single button

    Hi,
    My Project is in MS Access 2002.
    I want to know how can I Run Two Differant Queries at the same time when I press Submit buttom?
    OR can I Insert values in two different table using single query?
    Last edited by billy_pit; 01-30-08 at 14:42.

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Can you just run them one after the other?
    Code:
    DoCmd.RunQuery "some sql.."
    DoCmd.RunQuery "some other sql.."
    George
    Home | Blog

  3. #3
    Join Date
    Nov 2007
    Location
    Adelaide, South Australia
    Posts
    4,049
    Can't see why not. There is no benefit to running two queries at EXACTLY the same time.
    Owner and Manager of
    CypherBYTE, Microsoft Access Development Specialists.
    Microsoft Access MCP.
    And all around nice guy!


    "Heck it's something understood by accountants ... so it can't be 'that' difficult..." -- Healdem
    "...teach a man to code and he'll be frustrated for life! " -- georgev

  4. #4
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Ideally you'd want to run it as a single transaction; but I'm not aware of these in Access so this is your best bet!

    Just remember to hanlde errors!
    George
    Home | Blog

Posting Permissions

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