Results 1 to 2 of 2
  1. #1
    axg275 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2014
    Posts
    17

    Double Query Help

    Hey Guys.

    I am having huge problem with trying to execute a query it just does not make a table its stuck on running the query mode and does not move. What i did was found an article on how to create a query online and modified it for my table. I wanted to see if its possible for me to write this query in the design mode as opposed to the sql code. Here is the code that I wrote that does not run to make the table:

    SELECT

    E.Wells, E.Tops_AZPU_AG,
    E.Tops_AZPU, E.EVENT_DATE,
    E.KH_Logged_,
    (SELECT SUM(E1.KH_Logged_) FROM tblEvent AS E1 WHERE E1.Tops_AZPU_AG=E.Tops_AZPU_AG AND E1.EVENT_DATE=E.EVENT_DATE) AS TOTAL_KH_Logged_,
    E.KH_Logged_/TOTAL_KH_Logged_*100 AS PCT_KH_Logged_ INTO tbl_Res_byPercent

    FROM tblEvent AS E;

    I followed this thread to create my query : https://stackoverflow.com/questions/...in-access-2016

    I was trying to figure out how to get this query made in the two steps in the design mode. I am really stuck. Can someone help me out?

    Thank you

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    make Q1 a select query, to sum items.
    make Q2 a make table, using Q1.

    if Q1 works, then Q2 should too

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

Similar Threads

  1. Working with a Double Query on a a Form
    By Lou_Reed in forum Access
    Replies: 92
    Last Post: 06-03-2017, 10:59 AM
  2. Double Value Shoes in query
    By nhkhurum in forum Queries
    Replies: 14
    Last Post: 11-16-2013, 03:55 AM
  3. how to solve this double query
    By gunterhoflack in forum Access
    Replies: 11
    Last Post: 01-28-2013, 07:58 AM
  4. double update query problem
    By tss in forum Queries
    Replies: 9
    Last Post: 11-04-2011, 08:50 AM
  5. Append query double criteria
    By Gerry in forum Queries
    Replies: 0
    Last Post: 03-23-2010, 03:55 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