Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Forums > Access
Back to Access Forum    Comments List
Upload Images   Link   Email  
Allowed Credit Limit
Roger Strate 
      
2 years ago
Hi Richard, I appreciate your video on getting a value from a subform and it was very helpful, thank you. I have an allowed credit limit box on my customer form and a Sum(ExtPrice) in the footer of the Order sub form. I would like to have the amount for each order reflected in the Order subfom reduce the credit limit number on the customer form after each transaction. Is there a way to do that?  I am uploading images hopefully to make this more clear.
Roger Strate OP 
      
2 years ago

Roger Strate OP 
      
2 years ago

Alex Hedley 
            
2 years ago
CreditLimit - DSUM(of figures)
Kevin Robertson 
           
2 years ago
The screenshot below shows how I would do it. I have a second field showing the Available Credit. You don't want to change the Credit Limit itself.
Kevin Robertson 
           
2 years ago

Roger Strate OP 
      
2 years ago
I created two fields one for available credit using the DSum function and one called total orders. I followed your instructions for the IIF function it follows: =IIF ([TotalOrders]) = 0, [CreditLimit], [CreditLimit]-DSum("SumOrderTotal","CustomerOrderTotalQ","CustomerID=" & ([CustomerID]))). I get the error message "wrong number of arguments. Any ideas?
Roger Strate OP 
      
2 years ago
I like the IIF function for this field but I tried Alex' suggestion and it works great. Kevin thank you, if you figure out the IIF function for me I will use it. Thank you Alex as well.
Kevin Robertson 
           
2 years ago
You have an extra parenthesis after [TotalOrders].
=IIF ([TotalOrders] = 0, [CreditLimit], [CreditLimit]-DSum("SumOrderTotal","CustomerOrderTotalQ","CustomerID=" & ([CustomerID])))
Richard Rost 
           
2 years ago

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

 
 
 

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 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 1/13/2025 3:28:49 PM. PLT: 1s