Results 1 to 3 of 3
  1. #1
    astokes1024 is offline Novice
    Windows 10 Office 365
    Join Date
    Sep 2024
    Posts
    3

    Make Table Query is creating a different data set in the created table, but only for 1 column.

    Hoping to find some answers on a strange issue. Below is a snapshot of my make table in the datasheet view. Note the data in the R12 PU% column header.




    below is the data produced when I run the new table. There are several hundred records in this table, most of them are 0, but there are also a handful of 1's as well. Why is the data not transferring like my other 3 columns?






    below is my sql for the make table qry:
    Code:
     SELECT RUL.Hierarchy, PTRSC_SOLByConfigAveragesR12.AvgUnitCount AS [R12 Average Unit Count], PTRSC_SOLByConfigAveragesR12.AvgFleetSizeOEC AS [R12 Average OEC], PTRSC_SOLByConfigAveragesR12.AvgFleetOnRentOEC AS [Physical Ute ($)], PTRSC_SOLByConfigAveragesR12.AvgOnRentPercent AS [R12 PU%] INTO qry_make_table_CC_Performance_MetricsFROM RUL LEFT JOIN PTRSC_SOLByConfigAveragesR12 ON RUL.Hierarchy = PTRSC_SOLByConfigAveragesR12.CategoryClassification
    GROUP BY RUL.Hierarchy, PTRSC_SOLByConfigAveragesR12.AvgUnitCount, PTRSC_SOLByConfigAveragesR12.AvgFleetSizeOEC, PTRSC_SOLByConfigAveragesR12.AvgFleetOnRentOEC, PTRSC_SOLByConfigAveragesR12.AvgOnRentPercent;

  2. #2
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    You can't just paste pics in here if that's what you tried. IMO, copying from a table or spreadsheet and pasting that works and is better than posting pics anyway.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    abuislam is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2024
    Posts
    4
    Hi @astokes1024, check the following:

    1. Data Types: Ensure data types match between source and destination.
    2. SQL Query: Verify the GROUP BY clause aligns with your data aggregation.
    3. Source Data: Look for anomalies in the R12 PU% data.
    4. Testing: Run a simplified query to isolate the issue.

    Hope this helps!

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

Similar Threads

  1. Creating Table from column data in another table.
    By Clifford86 in forum Database Design
    Replies: 9
    Last Post: 05-14-2024, 04:14 PM
  2. Replies: 9
    Last Post: 06-15-2017, 03:00 PM
  3. Replies: 2
    Last Post: 09-27-2014, 09:48 AM
  4. Replies: 7
    Last Post: 01-06-2011, 12:34 PM
  5. Adding new column to make-table query
    By dtn118 in forum Access
    Replies: 2
    Last Post: 08-03-2008, 06:51 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