Gradually getting a motor bike race database together. Have a number of different meetings each year with obviously a number of races within each meeting. Entry costs can vary meeting to meeting and there are optional costs per meeting (eg rent garage space or late entry fee). I have a form that is used to determine what costs apply to each rider with Y/N check boxes beside each optional cost. I have the form calculating the total (adding fixed costs to optional costs multiplied by Y/N field multiplied by -1) but am interested in smarter methods. Major problem is that I dont know how to save that value to the costs table as the total costs for this rider for this meeting . Appreciate any advice
Also I have a form for each meeting where I specify the costs for that particular meeting. I would like to then have these copied to the appropriate section of the Costing form as the default when I am doing the actual costing described above. eg if meeting 3 has a default entry fee of $50, I would like this to be recorded as the default entry cost for riders for that meeting (and same for other cost items) whereas meeting 4 may have a default entry cost of $60
At the end of this process, I obviously need to be able to record receipts when the riders pay, and to differentiate between receipts for this meeting and any payment of carry forward balances
TIA
Steve
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Update Tables (2000)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Update Tables (2000)
- This topic has 26 replies, 2 voices, and was last updated 21 years, 1 month ago.
AuthorTopicWSstevecox4444
AskWoody LoungerMarch 13, 2004 at 11:42 pm #402261Viewing 1 reply threadAuthorReplies-
WSHansV
AskWoody LoungerMarch 13, 2004 at 11:59 pm #798643You can either store each optional cost in the costs table, or just the sum, in the Before Update event of the form.
I assume this form has a combo box from which the user can select the meeting. You can populate the various costs in the After Update event of this combo box. One way to get them is to add the meeting costs table to the record source of the form (with an outer join on the meeting ID field); DLookups are another possibility.
-
WSstevecox4444
AskWoody LoungerMarch 14, 2004 at 12:07 am #798662Thanks for the quick response – I must be holding my tongue wrong as when I use the Before or After Update event , there are no changes in the contents of the table – could you be very specific on the useage required (Its Sunday, I’m tired not to mention thick – I said dont mention thick)
Steve -
WSHansV
AskWoody LoungerMarch 14, 2004 at 12:22 am #798669 -
WSstevecox4444
AskWoody Lounger -
WSHansV
AskWoody LoungerMarch 14, 2004 at 12:42 am #798689 -
WSstevecox4444
AskWoody Lounger -
WSHansV
AskWoody LoungerMarch 14, 2004 at 1:07 am #798711See post 353263 higher up in this thread.
-
WSHansV
AskWoody LoungerMarch 14, 2004 at 1:07 am #798712See post 353263 higher up in this thread.
-
WSstevecox4444
AskWoody LoungerMarch 14, 2004 at 1:32 am #798732Sorry if I have said something out of order especially given the massive contribution you make to this group.
As a one man IT department in a small town, I have to be all things to all people (yes an impossible task) without any outside support except groups like this. This means that I sometimes have to learn the hard way by using inefficient methods while I learn more so I don’t get bogged down on one small (to more experienced people) issue. I was hoping to get this to work (albeit inefficiently) so I could keep going with other items and come back later when I knew more to make it more efficient . Thanks for help anyway
Steve -
WSHansV
AskWoody LoungerMarch 14, 2004 at 9:44 am #798794 -
WSstevecox4444
AskWoody LoungerMarch 14, 2004 at 8:09 pm #798972Hans I understood your suggestion in concept but cannot make it work. My formula is
[TotalCost]=[EntryCost]+[EventTimingCost]+([NoExtraTickets]*[ExtraTicketCost])+(([C&DGradeCost]*[C&DGradeFeatures(Y/N)]*-1)+([CrossEntryCost]*[CrossEntry(Y/N)]*-1)+([PracticeCost]*[PracticeCost(Y/N)]*-1)+([GarageCost]*[GarageFee(Y/N)]*-1)+([RidersLevySoloCost]*[RidersLevySolo(Y/N)]*-1)+([RidersLevySidecarCost]*[RidersLevySidecar(Y/N)]*-1)+([CreditCardCost]*[CreditCardCost(Y/N)]*-1)+[LateEntryCost]*[LateEntryFee(Y/N)]*-1)+([OtherFee1Cost]*[OtherFee1(Y/N)]*-1)+([OtherFee2Cost]*[OtherFee2(Y/N)]*-1).
I have tried to add this to the after update event but it has no effect. Is there something fussy about syntax that I am missing
TIA
Steve -
WSHansV
AskWoody Lounger -
WSstevecox4444
AskWoody LoungerMarch 15, 2004 at 8:09 pm #799386I’ll probably get the terminology wrong here so apologise in advance.
The answer (I think) is all. Basically all but 3 items (EntryCost and EventTimingCost and TicketCosts) are optional. Ticket costs are the number chosen (entered on the form) by the cost per ticket. For each optional cost, I have the cost field and an additional Y/N field for that cost eg Practice Cost and PracticeCost(Y/N). As I knew Access stores Yes as -1 and No as 0, I multiply the cost by the result in the Y/N field then the answer by -1 to make it a positive number (I’m sure there are smarter ways but this works for my level of knowledge
I have an item on the form called total costs and do have the total successfully being calculated here but it is not stored anywhere. The formula for this calculation is the long one I sent before
Steve -
WSHansV
AskWoody LoungerMarch 15, 2004 at 8:19 pm #799396If all these items are bound, I don’t understand why the Form_BeforeUpdate event doesn’t work:
Private Sub Form_BeforeUpdate(Cancel As Integer)
Me.TotalCostField = Me.TotalCost
End SubBut of course, this will only work with records you change. You will have to run an update query (once only) to update existing records.
-
WSHansV
AskWoody LoungerMarch 15, 2004 at 8:19 pm #799397If all these items are bound, I don’t understand why the Form_BeforeUpdate event doesn’t work:
Private Sub Form_BeforeUpdate(Cancel As Integer)
Me.TotalCostField = Me.TotalCost
End SubBut of course, this will only work with records you change. You will have to run an update query (once only) to update existing records.
-
WSstevecox4444
AskWoody LoungerMarch 15, 2004 at 8:09 pm #799387I’ll probably get the terminology wrong here so apologise in advance.
The answer (I think) is all. Basically all but 3 items (EntryCost and EventTimingCost and TicketCosts) are optional. Ticket costs are the number chosen (entered on the form) by the cost per ticket. For each optional cost, I have the cost field and an additional Y/N field for that cost eg Practice Cost and PracticeCost(Y/N). As I knew Access stores Yes as -1 and No as 0, I multiply the cost by the result in the Y/N field then the answer by -1 to make it a positive number (I’m sure there are smarter ways but this works for my level of knowledge
I have an item on the form called total costs and do have the total successfully being calculated here but it is not stored anywhere. The formula for this calculation is the long one I sent before
Steve -
WSHansV
AskWoody Lounger -
WSstevecox4444
AskWoody LoungerMarch 14, 2004 at 8:09 pm #798973Hans I understood your suggestion in concept but cannot make it work. My formula is
[TotalCost]=[EntryCost]+[EventTimingCost]+([NoExtraTickets]*[ExtraTicketCost])+(([C&DGradeCost]*[C&DGradeFeatures(Y/N)]*-1)+([CrossEntryCost]*[CrossEntry(Y/N)]*-1)+([PracticeCost]*[PracticeCost(Y/N)]*-1)+([GarageCost]*[GarageFee(Y/N)]*-1)+([RidersLevySoloCost]*[RidersLevySolo(Y/N)]*-1)+([RidersLevySidecarCost]*[RidersLevySidecar(Y/N)]*-1)+([CreditCardCost]*[CreditCardCost(Y/N)]*-1)+[LateEntryCost]*[LateEntryFee(Y/N)]*-1)+([OtherFee1Cost]*[OtherFee1(Y/N)]*-1)+([OtherFee2Cost]*[OtherFee2(Y/N)]*-1).
I have tried to add this to the after update event but it has no effect. Is there something fussy about syntax that I am missing
TIA
Steve -
WSHansV
AskWoody LoungerMarch 14, 2004 at 9:44 am #798795 -
WSstevecox4444
AskWoody LoungerMarch 14, 2004 at 1:32 am #798733Sorry if I have said something out of order especially given the massive contribution you make to this group.
As a one man IT department in a small town, I have to be all things to all people (yes an impossible task) without any outside support except groups like this. This means that I sometimes have to learn the hard way by using inefficient methods while I learn more so I don’t get bogged down on one small (to more experienced people) issue. I was hoping to get this to work (albeit inefficiently) so I could keep going with other items and come back later when I knew more to make it more efficient . Thanks for help anyway
Steve -
WSstevecox4444
AskWoody Lounger -
WSHansV
AskWoody LoungerMarch 14, 2004 at 12:42 am #798690
-
-
-
WSstevecox4444
AskWoody Lounger
-
-
-
WSHansV
AskWoody LoungerMarch 14, 2004 at 12:22 am #798670
WSstevecox4444
AskWoody LoungerMarch 14, 2004 at 12:07 am #798663Thanks for the quick response – I must be holding my tongue wrong as when I use the Before or After Update event , there are no changes in the contents of the table – could you be very specific on the useage required (Its Sunday, I’m tired not to mention thick – I said dont mention thick)
SteveWSHansV
AskWoody LoungerMarch 13, 2004 at 11:59 pm #798644You can either store each optional cost in the costs table, or just the sum, in the Before Update event of the form.
I assume this form has a combo box from which the user can select the meeting. You can populate the various costs in the After Update event of this combo box. One way to get them is to add the meeting costs table to the record source of the form (with an outer join on the meeting ID field); DLookups are another possibility.
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Remove a User from Login screen
by
CWBillow
56 minutes ago -
TikTok fined €530 million for sending European user data to China
by
Nibbled To Death By Ducks
2 hours, 6 minutes ago -
Microsoft Speech Recognition Service Error Code 1002
by
stanhutchings
8 hours, 10 minutes ago -
Best and easiest way to Split PST File (Awaiting moderation)
by
Jamesjackson0847
4 hours, 32 minutes ago -
Is it a bug or is it expected?
by
Susan Bradley
7 hours, 5 minutes ago -
Image for Windows TBwinRE image not enough space on target location
by
bobolink
4 hours, 43 minutes ago -
Start menu jump lists for some apps might not work as expected on Windows 10
by
Susan Bradley
12 hours, 43 minutes ago -
Malicious Go Modules disk-wiping malware
by
Alex5723
2 hours, 19 minutes ago -
Multiple Partitions?
by
CWBillow
2 hours, 59 minutes ago -
World Passkey Day 2025
by
Alex5723
20 hours, 19 minutes ago -
Add serial device in Windows 11
by
Theodore Dawson
1 day, 11 hours ago -
Windows 11 users reportedly losing data due forced BitLocker encryption
by
Alex5723
8 hours, 12 minutes ago -
Cached credentials is not a new bug
by
Susan Bradley
1 day, 16 hours ago -
Win11 24H4 Slow!
by
Bob Bible
1 day, 16 hours ago -
Microsoft hiking XBox prices starting today due to Trump’s tariffs
by
Alex5723
1 day, 13 hours ago -
Asus adds “movement sensor” to their Graphics cards
by
n0ads
1 day, 18 hours ago -
‘Minority Report’ coming to NYC
by
Alex5723
1 day, 14 hours ago -
Apple notifies new victims of spyware attacks across the world
by
Alex5723
2 days, 3 hours ago -
Tracking content block list GONE in Firefox 138
by
Bob99
2 days, 2 hours ago -
How do I migrate Password Managers
by
Rush2112
1 day, 10 hours ago -
Orb : how fast is my Internet connection
by
Alex5723
1 day, 12 hours ago -
Solid color background slows Windows 7 login
by
Alex5723
2 days, 14 hours ago -
Windows 11, version 24H2 might not download via Windows Server Updates Services
by
Alex5723
2 days, 13 hours ago -
Security fixes for Firefox
by
Susan Bradley
1 day, 13 hours ago -
Notice on termination of services of LG Mobile Phone Software Updates
by
Alex5723
3 days, 1 hour ago -
Update your Apple Devices Wormable Zero-Click Remote Code Execution in AirPlay..
by
Alex5723
3 days, 10 hours ago -
Amazon denies it had plans to be clear about consumer tariff costs
by
Alex5723
3 days, 1 hour ago -
Return of the brain dead FF sidebar
by
EricB
2 days, 12 hours ago -
Windows Settings Managed by your Organization
by
WSDavidO61
1 day, 15 hours ago -
Securing Laptop for Trustee Administrattor
by
PeachesP
17 hours, 50 minutes ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.