Results 1 to 2 of 2
  1. #1
    access is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2009
    Posts
    28

    Query Issue

    Hi,



    I have a table
    Table1 Table2 Table3
    IndN AggN CompN
    23 10 (23*12*76*44)/10
    12
    76
    44

    I would like to write a query to read the values from Table1 and Table2 and store the result with one row in Table3 as above using query:

    SELECT Sum(IndN)/AggN as CompN INTO Table3 FROM Table1, Table2;

    But i'm getting the following error:
    "You tried to execute a query that does not include the specified expression Sum(IndN)/ as part of an aggregate function."

    I'm not sure whether access supports this kind of query. Is there any other way to do this, Other than writing in two separate queries. Can any one please let me know. Thanks in advance.

  2. #2
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    A query will not do the calculations you want. remember queries peform caluclate within rows.

    You can peform you calculation in VBA code using DAO/AD recordsets.

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

Similar Threads

  1. Make Table Query Issue
    By tmcrouse in forum Access
    Replies: 0
    Last Post: 07-23-2009, 03:20 PM
  2. Need help with query table issue using forms
    By KLynch0803 in forum Access
    Replies: 1
    Last Post: 06-02-2009, 10:40 PM
  3. Replies: 1
    Last Post: 03-02-2009, 10:12 PM
  4. SetFocus Issue
    By Sinjin in forum Access
    Replies: 0
    Last Post: 02-14-2008, 07:31 AM
  5. Annoying Query issue
    By stevendavies in forum Queries
    Replies: 2
    Last Post: 05-08-2006, 02:35 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