Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
 
Home   News   Tips   Glossary   Templates   Forums   Help   Logon   Order   Contact Us  
 

News      User Comments     History     Notify Me

6/30/2013 10:55:12 PM
Microsoft Access Expert 8
By Richard Rost   Richard Rost on Facebook Richard Rost on Twitter Richard Rost on Google Plus Richard Rost on LinkedIn Email Richard Rost

 
Microsoft Access Expert Level 8 is 1 hour, 55 minutes long and focuses beginning to build our Order Entry System. We'll start out by learning how to create Calculated Query Fields. We'll calculate an extended price and sales tax for our order items. We'll learn how to properly Round values to avoid fractional penny errors. We'll build an Order Form and Order Details Form (for line items), and lots more. Topics include:

- Order Entry System
- Order Form and Details Subform
- Calculated Query Fields
- Figuring Sales Tax if Taxable
- IIF Function (If/Then/Else)
- Proper Rounding of Values
- Bankers Rounding
- Nesting Functions
- Final Product and Tax Totals

Click here for more information on Access Expert Level 8, including a course outline, sample videos, and more. This course was recorded using Access 2013, but is also valid for Access 2007 and 2010 users. This class follows Expert Level 7.

Permanent Link
Course Link: Microsoft Access Expert 8
Keywords: access expert 8 order entry calculated query fields iif function rounding sales tax
Page Tag: whatsnew
Post Reply

IIF comma comma comma Comment from Adi @ 9/12/2014
Hello Richard,
this is how I learn about IIF from your Access Expert 8. I'd like to share with you and the class.

We use decimal comma in general arithmetic. So the "IsTaxable" value 8% is written as = 0,08 instead of 0.08

The problem is, if I write IIF([IsTaxable],[ExtPrice]*0,08,0) then access will warn me for syntax error.
So I replaced 0,08 with 8/100.

IIF([IsTaxable],[ExtPrice]*8/100,0)
well it works partially for the TRUE-part. The FALSE-part show NULL (blank) instead of 0 (zero).

When I recheck the function, somehow it turns into
IIF([IsTaxable],[ExtPrice]*8/100)
See? the False-Part simply disappears. {IIF(Condition,True,False)}

I then realize, that Access assumes the last {,0} not as the {False-Part}, but as a part of {100,0} = 100.

So i modified the IIF function into
IIF([IsTaxable],8/100*[ExtPrice],0)
Now it works perfectly as expected, although I'm not sure if it is the ideal solution for the case.
Another solution that works is, when I put 0,08 inside a bracket IIF([IsTaxable],[ExtPrice]*(0,08),0)

What will be the more elegant solution for this case? Do you have any tips about how MS Access handles comma and point as decimal marks? I'm afraid, my database will behaves differently on the other half of the world if there is no agreement about this simple issue :D


Reply from Richard Rost:

I really know very little about how other currencies are handled in Access. My experience is limited to the US and Canada. If putting the currency value inside of parentheses works, I'd just stick with that.

IIF([IsTaxable],[ExtPrice]*(0,08),0)

Seems like a reasonable solution to me.
Show Just This Thread        Post Reply

Add Your Comments or Subscribe
 
If you just want to subscribe to get email updates when the News is updated, then enter your name and email address and check the Notify Me box below. If you would optionally like to add your comments below to be posted, they are welcome.
 
  Your Name:  Required
  Your Email:  NOT Public
  Subject:
  Comments:

 

Sorry about this step. It's just to keep the spam bots away:
  Verify: What is 7+3:
  
  Notify me when the News is updated.
  Remember Me for my next comments
  
 
 
Please do not use this form for Customer Service inquiries! If you have questions about your account, shipping info, courses you've ordered, need passwords, etc. please use the Customer Service Center instead.

I value your comments. They will be displayed on this page (above). Your name will be displayed, but your email address will not be.
As always, I promise to never give away your personal information to anyone else, ever.

NOTE: If you don't leave your name and email address, DON'T expect a reply. I can't promise a personal reply to everyone who posts here. I TRY my best, but I cannot guarantee it. If you don't leave your real name and email address, I won't even bother. I usually just hit DELETE. -Richard

 

 

You may want to read these articles from the 599CD News:

8/15/2019Last Chance for Access CDs
8/1/2019Customer List Form Template
8/1/2019New Template Access Customer Database
7/30/2019Microsoft Access Developer 13
6/20/2019TIP: Validation Rules in Access
11/20/2018Microsoft Access Developer 12
8/25/2018NEW: Access Dev 9, 10, 11
8/25/2018Microsoft Access Developer 11
8/25/2018Microsoft Access Developer 10
8/25/2018Microsoft Access Developer 9
 

Learn
 
Accessindex
Excelindex
Wordindex
Windowsindex
PowerPointindex
Photoshopindex
Visual Basicindex
ASPindex
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
Lost Password
Free Upgrades
Insider Circle
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Articles
Search Our Site
Waiting List
Production Schedule
Collapse Menus
Help
 
Live Chat
Customer Support
WalkThru Tutorials
Troubleshooting
FAQs
TechHelp
Consulting Services
About Us
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order
 
Video Tutorials
Handbooks
MYOLP Memberships
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Gift CDs
Contact
 
Live Chat
General Info
Support Policy
Contact Form
Email Us
Mailing Address
Phone Number
Fax Number
Course Survey
Facebook    Twitter

Google Plus    LinkedIn

Blog RSS Feed    YouTube Channel
Richard Rost Microsoft MVP