Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Mashknight is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    9

    Total Price after Sum in Query

    Hello. I'm new to Access so this might be an easy answer. I created a Query that joins to tables of "Pipes" and "Pipes Types", what this query does is to sum the lengths of all the pipes depending on their type. Now I have another table called "Pipes Prices" that indicates the unit price of each pipe type. What I want to do now is join this table to the query that I already have so it also shows the prices of each pipe types and their total price depending on the sum of length per type.


    Thank you.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Please post a picture of your table designs.
    Need more info on Pipe lengths and Prices.

    Welcome to the forum.

  3. #3
    Mashknight is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    9
    Hello. Thank you for your reply and welcome. Here are the images of the query and the table I want to incorporate.

    Click image for larger version. 

Name:	query 1.jpg 
Views:	11 
Size:	136.3 KB 
ID:	37156

    Click image for larger version. 

Name:	table.jpg 
Views:	10 
Size:	126.3 KB 
ID:	37157

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Your prices seem extremely high--are these per so many feet??? What/How many units of 4" would cost ~ $240K??

    Seems you need

    Item, Cost per unit and Number of units purchased to get TotalPrice

    Consider
    4" Pipe(PVC Sanitario bajante), at a cost of $XX per 10 ft. , 250 ft purchased would have total Price

    ($xx/10)*250 = $25XX

  5. #5
    Mashknight is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    9
    The units are in meters and the prices in colombian pesos. The exchange currency at the moment is 3000 pesos = 1 US Dolar.

    How do I add that calculation? My goal is to do this directly in Access everytime I change something from the original model on Revit and to avoid exporting the Access Database to Excel.

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    For clarity,

    You post shows
    4" Pipe(PVC Sanitario bajante) with price $239,182.00.
    What exactly is the Price per meter?
    How many meters were purchased?

    (PricePreMeter*NumberOfMeters)/(columbianPesos/US Dollar)

  7. #7
    Mashknight is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    9
    Quote Originally Posted by orange View Post
    For clarity,

    You post shows
    4" Pipe(PVC Sanitario bajante) with price $239,182.00.
    What exactly is the Price per meter?
    How many meters were purchased?

    (PricePreMeter*NumberOfMeters)/(columbianPesos/US Dollar)

    Thank you for your response. To clarify that statement means: the 4" PVC Sanitario Bajante has a price of $239,182 per meter. In this case, as shown in the query, were bought a total 39.93ml. The column of Total Price that I want to add would say that this type of pipe will be $239,182/ml x 39.93 ml =$9,550,537.26 pesos (around 3000 US Dollars).

    How can I get this information base on the query and the pipe price table I have? Or is it not possible?

  8. #8
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    It sounds like you may have an inventory of Pipe (different types).
    And you sell different lengths of different Pipes.
    Also, the exchange rate may change from tie to time, so you may need to keep track.

    If this isn't correct, then give an overview of how the pipe, Prices and exchange rate fits in your set up.
    If you post a copy of the database(only need a few records), I'll see if I can get a query to do the calculation.

  9. #9
    Mashknight is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    9
    Here is a screenshot of the Design View. I don't need the exchange rate because I need this information in colombian pesos, I mentioned it because you were inquiring about the currency.

    I have pipes types, different lengths in meter, now I need the total price of those lengths according to their respective price.

    Click image for larger version. 

Name:	design.png 
Views:	8 
Size:	15.6 KB 
ID:	37160

    Thank you. You have been very patient with my lack of knowledge about this.

  10. #10
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Do Pipe Prices vary depending on Length? If not, why do you have overall Size in the PipePrices table?

    Your table and field names should not have embedded spaces --(will cause syntax errors).

    How often do you Prices change? You will need to relate PipePrices to your other tables.

    I still don't understand the business --do you sell pipe to customers?

  11. #11
    Mashknight is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    9
    Hello. I'm a Construction Manager, specifically BIM Manager. The reason I started using Access was to export a database ODBC from exporting the quantities from Revit. The traditional way is through Excel but every time I update the model, I had to export all the data, organize it and get the information that I have it automatically with Access. My idea is to have this information immediately which I already do with Access, now I just wanted to have the total price as I continue to model from Revit. Now, I can export the data from Access to Excel to get this total price column but I just wanted to see if there was a way to avoid that.

    The prices comes from a quota so they will not change but the sum of the lengths do. The information of the query is the total sum of the lengths of different types of pipes. From what I have seen from Youtube videos is to use the Builder from the Design View but I am having difficulties with creating the formula.

  12. #12
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    I am not familiar with Revit.
    What field in your table(s) identify the Pipe for which this is the PricePerMeter?
    Perhaps the info I'm looking for is hidden in the graphic you posted in post #9.

  13. #13
    Mashknight is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    9
    It would be the Keynote. In the Table of Pipe prices appears the type of pipe which is under the Keynote Column and the price per meter depends on the overall diameter.

  14. #14
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

  15. #15
    Mashknight is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    9
    Click image for larger version. 

Name:	pipes.png 
Views:	8 
Size:	19.9 KB 
ID:	37163

    Click image for larger version. 

Name:	types.jpg 
Views:	8 
Size:	81.7 KB 
ID:	37164

    Click image for larger version. 

Name:	prices.jpg 
Views:	9 
Size:	71.4 KB 
ID:	37165

    Click image for larger version. 

Name:	query.jpg 
Views:	9 
Size:	74.9 KB 
ID:	37166

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Order Entry Form - Case Price vs. Unit Price
    By Kaloyanides in forum Access
    Replies: 4
    Last Post: 05-18-2017, 06:31 AM
  2. Replies: 17
    Last Post: 12-14-2015, 10:23 PM
  3. Replies: 2
    Last Post: 10-06-2015, 04:32 PM
  4. Replies: 2
    Last Post: 04-14-2015, 08:28 AM
  5. Replies: 2
    Last Post: 03-02-2011, 01:43 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