Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Developer Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Rental Inventory
Peggy Staudt 
    
4 years ago
For each purchase, we use weighted average pricing to determine the FIFO cost. Anyone set up weighted average in Access? I need assistance in designing/setting it up. I know how I want the result to look but need assistance in designing it in Access.
Adam Schwanz  @Reply  
           
4 years ago
Can't you do this with a query? Make your own expressions Value1: Part*Weight , Value2:.. Then Add up the values like SumValue: Value1 + Value2... then do the division WeightedAvg: SumValue/SumWeight
Scott Axton  @Reply  
        
4 years ago
How do you figure the WA Price now?  What criteria are you using?
If you can write out a formula on how you calculate the price manually it would be easier for us to help you convert that to something you can use in Access.
Peggy Staudt OP  @Reply  
    
4 years ago
The result I am hoping for is also the calculation following:
Purchase Date                                   Quantity             Cost       Extended Cost      Weighted Average*moving
1/1/22 (as an example for layer 1):         10                    2            20.00
2/1/22                                                 20                    2            40.00               (sum of ext cost/sum of quantity) $2.00
3/1/22                                                 20                     3           60.00                       $2.40
4/1/22                                                  30                    4          120.00                      $3.00

As you can see, with each new "layer" created with each new purchase, the weighted average changes. I would like the result to be in columnar form to make the sum easier; all suggestions are welcome! Thank you for any insight you can provide!
Adam Schwanz  @Reply  
           
4 years ago
So if you are using a query you could make 3 new expressions

SQty: DSUM("Quantity","Table","PurchaseDate<=#" & PurchaseDate & "#")

SCost: DSUM("ExtendedCost","Table","PurchaseDate<=#" & PurchaseDate & "#")

WAvg: SCost/SQty


That should give you the running weighted average as it goes down to current.
Adam Schwanz  @Reply  
           
4 years ago
You'd also have to add the part to the where condition if it was multiple parts, and you may have to add in the ID field as well if you have multiple same day purchases of that part.
Scott Axton  @Reply  
        
4 years ago
I haven't had a chance to look at this real close but Richard made a video about 3 month ago that I think would help you out.
Check out Moving Average
Richard Rost  @Reply  
          
4 years ago
What are the rules for how your weight changes?

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Developer Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/6/2026 5:34:48 AM. PLT: 1s