Results 1 to 2 of 2
  1. #1
    Govinda is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    1

    Run Append and Update Queries

    Hi everyone,
    I'm a beginner in access vba. i have some records in a table. i'd like to know if i can run an append query and a update query with a click of single button. i tried the following code, but couldn't append and update even a single record.
    DoCmd.OpenQuery "X"
    DoEvents
    DoCmd.OpenQuery "Y"

    a quick reply would help me a lot. thanks in advance gyus.



    Regards,
    Govind

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,972
    I split your post to its own thread. Should always post your question to a new thread.

    That code should work.

    Show the SQL statements of the queries.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Append Queries
    By HunterEngineeringCoop in forum Queries
    Replies: 8
    Last Post: 12-12-2012, 01:10 PM
  2. Replies: 5
    Last Post: 09-12-2012, 09:53 AM
  3. Append Queries different datatypes
    By whojstall11 in forum Queries
    Replies: 1
    Last Post: 07-24-2012, 08:35 AM
  4. Append/Delete Queries
    By donnan33 in forum Queries
    Replies: 3
    Last Post: 01-13-2012, 03:01 PM
  5. Replies: 1
    Last Post: 12-29-2011, 05:51 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