Hello everybody,
I have a quick question, a piece of cake to most of you, I'm sure.
Here's the simplified scenario:
I have two tables:
tableA, with two fields:
fullName, daysRemaining
tableB, two fields as well:
fullName, daysUsed
daysRemaining starts out with 15 and decreases with every entry made into tableB (negatives allowed)
There will me multiple names and multiple entries for every names in tableB.
What I need is a query that updates tableA every time the user hits Save button in tableB form, adding up all entries for that name. In other words daysRemaining for a particular name should equal to 15 minus (sum of all daysUsed for that name)
I tried to keep it short but if something isn't clear, please ask and I'll clarify.
Thanks in advance.
I have a quick question, a piece of cake to most of you, I'm sure.
Here's the simplified scenario:
I have two tables:
tableA, with two fields:
fullName, daysRemaining
tableB, two fields as well:
fullName, daysUsed
daysRemaining starts out with 15 and decreases with every entry made into tableB (negatives allowed)
There will me multiple names and multiple entries for every names in tableB.
What I need is a query that updates tableA every time the user hits Save button in tableB form, adding up all entries for that name. In other words daysRemaining for a particular name should equal to 15 minus (sum of all daysUsed for that name)
I tried to keep it short but if something isn't clear, please ask and I'll clarify.
Thanks in advance.