Vous êtes sur la page 1sur 9

November 14, 2013

Finish Lab 10
Open dataforlab10 file

Access Formulas and Functions ppt show Download the following files from BB under Assignments
Electronicsmerchandise.accdb

Financialdata.accdb
Realestatedata.accdb

SAM assignment 6 is now available until midnight, November 16th

SAM Access Project now available. Must be submitted for grading by

midnight on November 25th Next exam is November 26th Review sheet on Blackboard under Documents

List of Skills to Learn


Custom fields Calculated fields Building a formula Expression Builder IIF function FV function PMT function

Access, Formulas and Functions


Created by adding a new custom field to the design

grid of a query Custom fields those that a created in the query, but are not in the table Calculated field custom fields that contain the results of a formula or function

Creating Custom Fields


Type field name
Type a colon : after the field name Type in what will appear in the field Example: Target Week of Supply:8 You can identify a custom field by the colon or by a

blank table cell in the query design grid

Basic Formula in Access:


Field name
Mathematical operator Field name Each table name and each field name is surrounded by

square brackets [ ] An exclamation point separates the table and field names Example: Weeks of Supply:[Sales Data]![Current Inventory Units]/[Sales Data]![Unit Sales LW]

Basic Formula in Access:


Anything before the exclamation point is a table name. Brackets indicate that a mathematical calculation is to be

performed. Math operators are just like Excel. You cant apply a mathematical operation to specific cells they are applied to the entire field. Use field names (like cell addresses in Excel) to construct formulas rather than constants. Use constants when necessary for things like months in a year, minutes in a hour, etc. Example: Days of Supply: [Sales Data]![Current Inventory Units]/([Sales Data]![Unit Sales LW]/7)

Expression Builder
Tool to create formulas using a point and click method
<<Expr>>serves as a placeholder and needs to be

deleted

Basic IIF Function


Immediate IF (works like IF function in Excel) expression = logical test

Usually a field name followed by a comparison operator or text enclosed in quotation marks

Truepart = defines the output of the function if logical

test is true Falsepart = defines the output of the function if the logical test is false

Financial Functions
Future value (FV)
Calculates the future value of an annuity Rate, nper, pmt, pv, type

Payment (pmt)
Calculates the payment given a constant interest rate

and constant payments Rate, nper, pv, fv, type

Necessary to adjust so units are equal just like in Excel

Vous aimerez peut-être aussi