8/13/2019 Access, Formulas and Functions
1/9
November 14, 2013Finish Lab 10
Open dataforlab10 file
Access Formulas and Functions ppt showDownload the following files from BB under Assignments
Electronicsmerchandise.accdbFinancialdata.accdbRealestatedata.accdb
SAM assignment 6 is now available until midnight, November 16 th SAM Access Project now available. Must be submitted for grading bymidnight on November 25 th Next exam is November 26 th Review sheet on Blackboard under Documents
8/13/2019 Access, Formulas and Functions
2/9
List of Skills to Learn Custom fields Calculated fields
Building a formula Expression Builder IIF function FV function
PMT function
8/13/2019 Access, Formulas and Functions
3/9
Access, Formulas and FunctionsCreated by adding a new custom field to the designgrid of a query
Custom fields those that a created in the query, butare not in the tableCalculated field custom fields that contain theresults of a formula or function
8/13/2019 Access, Formulas and Functions
4/9
Creating Custom FieldsType field nameType a colon : after the field name
Type in what will appear in the fieldExample: Target Week of Supply:8 You can identify a custom field by the colon or by ablank table cell in the query design grid
8/13/2019 Access, Formulas and Functions
5/9
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]
8/13/2019 Access, Formulas and Functions
6/9
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)
8/13/2019 Access, Formulas and Functions
7/9
Expression BuilderTool to create formulas using a point and click methodserves as a placeholder and needs to be
deleted
8/13/2019 Access, Formulas and Functions
8/9
Basic IIF FunctionImmediate IF (works like IF function in Excel)
expression = logical testUsually a field name followed by a comparison operator or textenclosed in quotation marks
Truepart = defines the output of the function if logicaltest is trueFalsepart = defines the output of the function if thelogical test is false
8/13/2019 Access, Formulas and Functions
9/9
Financial FunctionsFuture value (FV)
Calculates the future value of an annuity
Rate, nper, pmt, pv, typePayment (pmt)
Calculates the payment given a constant interest rateand constant payments
Rate, nper, pv, fv, typeNecessary to adjust so units are equal just like inExcel
Top Related