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 29 Lessons    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Lesson 2 Profit Margin
Shallena Ayers 
      
10 months ago
When I say I want a 100% profit margin we end up dividing by 0 so get an error message.  D = CDbl(S) / 100 so if S is 100 we end up with 1.  then in UnitPrice we divide by D - 1 so 1 - 1 which is 0.  do we just never say we want 100% margin?  lol.  Is this an error in the code? or we just never should ask for a 100* margin?
Sami Shamma  @Reply  
             
10 months ago
Just check for that condition and adjust your formula accordingly.
Shallena Ayers OP  @Reply  
      
10 months ago
Got it... I kept waiting for Rick to see the error and address it then wondered if i missed something so rewatched... read through the code again... I kept thinking it had do be me lol.  Thanks Sami
Shallena Ayers OP  @Reply  
      
10 months ago
Can I ask you another question Sami?  In this lesson we calculate the profit, the margin, the Markup and the total unit cost.  The calculations are done in the forms.  Is there a way to access that information and put it into a continuous form type format so we could see all of the products numbers for each product?  i tried a query referencing the box and it doesnt pull the calculated value. i am thinking that if the calculations are being done in the form that the results are only available when the form is open?  So we cant do anything with the numbers?
Sami Shamma  @Reply  
             
10 months ago
Hi Shallena
Reproduce the same calculations in the query without referencing the form.

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

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: 4/30/2026 5:30:39 AM. PLT: 0s