Results 1 to 2 of 2
  1. #1
    jhargram is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2012
    Posts
    40

    execute two queries in single CLICK event

    Hi All-- Always I execute one query in single click event. Is it any possibility to execute more then one query in single click event. If yes then how?. Thanks in advance...

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    Use vba,

    In Click event
    DoCmd.Openquery "query1"
    DoCmd.Openquery "query2"


    Or if action query

    In Click event
    db.execute sql1,dbfailonError
    db.execute sql2,dbfailonError


    where sql1 and sql2 are strings containing the SQL of the respective queries.

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

Similar Threads

  1. List Box Click Event
    By bginhb in forum Forms
    Replies: 3
    Last Post: 04-09-2012, 02:06 PM
  2. On-Click Event Procedure
    By tbassngal in forum Forms
    Replies: 6
    Last Post: 07-20-2011, 07:06 AM
  3. Command button click event
    By R_jang in forum Programming
    Replies: 10
    Last Post: 10-29-2010, 10:13 PM
  4. On Click Event Procedure
    By MrDean in forum Forms
    Replies: 3
    Last Post: 10-07-2009, 07:16 AM
  5. On-Click event transfer
    By nkenney in forum Forms
    Replies: 16
    Last Post: 03-26-2009, 09:02 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