Results 1 to 4 of 4
  1. #1
    Coffee is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jul 2011
    Location
    Australia
    Posts
    31

    How To Run a Query?

    Hello,

    is there a way i can Run my "SELECT" SQL query on my forum without having the Results (datasheet) view opening up over my form?

    i have already tried

    DoCmd.SetWarnings False
    DoCmd.OpenQuery "query"


    DoCmd.SetWarnings True

    AND

    Form.Echo = False
    DoCmd.OpenQuery "query"
    Form.Echo = True

    AND

    Application.Echo = False
    DoCmd.OpenQuery "query"
    Application.Echo = True

  2. #2
    Access_Blaster is offline User
    Windows XP Access 2010 32bit
    Join Date
    May 2010
    Posts
    339
    Would Minimize help? or Close.

    DoCmd.OpenQuery "query"
    DoCmd.Minimize

    What is the reason for running the query?

  3. #3
    Coffee is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jul 2011
    Location
    Australia
    Posts
    31
    all the SQL is in VBA and loads into a empty query statement under query and the last search is stored there. so if you open the query as a report it will display the last report. because you need to run it first to update the report file to show correct results in report

  4. #4
    Coffee is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jul 2011
    Location
    Australia
    Posts
    31
    can you make it so it doesnt pop up at all?. cos even

    DoCmd.Close acQuery, "query"

    makes it flash up and looks tacky

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

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