Results 1 to 3 of 3
  1. #1
    sheckay is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    May 2022
    Posts
    85

    Can't get alias working in query


    Hello. This question is probably pretty simple for an experienced person. I'm trying to work with expanding a query that a form is based off of. The numbers are coming in for quantity and unitprice. The aliases I need are: totalprice, totalpartslabor, totaltax, and subtotal. And it seems that the only one that's causing trouble is totalpartslabor which would be the sum of totalprice (if there's more than one item on the ticket). So, in the column after totalprice: [quantity]*[unitprice] I have the column for TotalPartsLabor. For that column I have TotalPartsLabor: Sum([Totalprice])
    But it doesn't work when I have that in there. What am I doing wrong?
    Thanks in advance.

  2. #2
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,821
    Hi
    The Sum of TotalPrice would normally be displayed in the Form Footer and not in the Individual Record

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    I believe you would need an aggregate query for that.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Replies: 6
    Last Post: 07-22-2019, 04:42 PM
  2. Replies: 3
    Last Post: 03-16-2016, 09:05 AM
  3. Replies: 2
    Last Post: 01-29-2014, 01:28 PM
  4. Replies: 6
    Last Post: 12-11-2013, 09:54 PM
  5. Replies: 7
    Last Post: 02-20-2012, 07:19 PM

Tags for this Thread

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