Results 1 to 4 of 4
  1. #1
    shabar is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    66

    How to run saved query in background

    Hi All




    How to run saved DB query in background (without getting the output results)


    Because DoCmd.OpenQuery method giving a output and through DoCmd.RunSQL method cannot run the saved DB query




    Cheers


    Shabar

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    What is the purpose of running a queyr in the background. If you explain to us what you are trying to do in simple language, then we can advise. Your open ended question is difficult to answer because we don't have enough information

  3. #3
    shabar is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    66
    Thanks for you reply alansidman


    Basically I wanted to run saved DB query and export result to excel sheet through a Form. The issue is when I am using


    DoCmd.OpenQuery the result set is dispalyed on the screen which I do not want. But when using DoCmd.RunSQL, I have
    to give query within the code. Even that I want to get rid of as I have the saved query in the DB.


    Is there a method to run saved query without displaying the result set on the screen.


    Hope this clarify the issue smoewhat




    Cheers


    Shabar

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Explore TransferSpreadsheet method. http://msdn.microsoft.com/en-us/libr...ffice.12).aspx
    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. Replies: 3
    Last Post: 08-16-2012, 03:02 PM
  2. Replies: 1
    Last Post: 01-12-2012, 01:09 PM
  3. Disallow edits to saved query
    By MWMike in forum Forms
    Replies: 2
    Last Post: 03-08-2011, 09:24 PM
  4. Replies: 3
    Last Post: 03-01-2011, 09:59 PM
  5. Saved Import in Query
    By Kimbertha in forum Queries
    Replies: 1
    Last Post: 10-21-2010, 07:21 AM

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