Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Access Questions
Brent  

15 years ago
What I am trying to do is there are bills that I am responsiable only half of. In the payee table I specify if the payee is a payee that splits the bill amount. so in the bill i would type the full amount of the bill and somehow it would check the payeet to see if that yes/no field is yes if its yes then a field on the bill table would take the amountdue and divide it by 2 and store that value in a field called shared amount.


Reply from Richard Rost:

OK, so on your BillT you've got the PayeeID. In the AfterUpdate event for the AmountDue field, say:

Shared = DLOOKUP("Shared","PayeeT","PayeeID=" & PayeeID)

(Or use PayeeCombo for the last variable if you're using the combo box).

Now you have the Shared value from the current Payee. I personally would create a second field to store this new amount rather than just automatically halving your AmountDue field... because what if you edit it again? It's going to get halved again.

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

Next Unseen

 
 
What's This?

 

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: 9/12/2026 7:50:15 PM. PLT: 0s