简体   繁体   中英

MS access calculated field sub table

I would like to add a calculated field to many of my tables and will be able to use this new technique many times.

I have sub records such as values for SalePrice and I would like to have these totals show in an employees record.

I would appreciate a sample query and how to implement considering the following data:

  • Table 1 (Employees): ID, EmployeeName, [Calculated Field]
  • Table 2 (Sales): ID, InventoryItem, SalePrice, QuantityOrdered

I would like to fetch [SalePrice] x [QuantityOrdered] in 2 scenarios:

  • Total Sales to date
  • Total Sales within a date range (where these 2 values can be entered on a form) for administration purposes as our employees are paid commission only.

I'm used to adding table fields in both Layout and Design view.

Kind regards, Mikey.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM