I am looking for ideas. I have a school employee database that updates deductions from payroll. Each year these values change. I would like to have a form that the operator could enter the new values, then use code to calculate.
What would be the best way to implement such a task. I appreciate any help…..
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Values entere via form (Acc2K)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Values entere via form (Acc2K)
- This topic has 8 replies, 3 voices, and was last updated 22 years, 9 months ago.
AuthorTopicWSabach
AskWoody LoungerJune 24, 2002 at 12:59 am #372706Viewing 0 reply threadsAuthorReplies-
WScharlotte
AskWoody LoungerJune 24, 2002 at 1:08 am #596541I think you’re going to have to be a bit more detailed about the kind of deductions and calculations you want to do in order to get useful replies. Are you talking about payroll withholding for income taxes, social security, deferred compensation, Flexible Spending Account, health insurance, or what? Which values are changing each year and on what basis are they changing? What do you want to calculate in code?
-
WSabach
AskWoody LoungerJune 24, 2002 at 1:47 am #596543Thank you Charlotte, as this is exactly what I will be doing. Most of these are payroll, health, FICA, etc. I just need a jumpstart on ideas as to how to allow a user to update the values, then I can write some functions or procedures to accomplish this.
Each teacher earns a salary based on their degree and number of years at the district. Most of the calculations are based on their gross pay, but they change from fiscal year to fiscal year(July 1 to June 30).
I need to go through all the records, update their years ( referred to a step ) adding one each year to a maximum of 18, then calculate the FICA, Health, etc. according to a schedule that is published by the teachers’ contract. The schedule lists 3 items: The degree, Number of Years (Step), and the Salary.Thank you so much for the reply and any ideas….
-
WSgellwood
AskWoody LoungerJune 24, 2002 at 4:04 pm #596646Allan,
Your algorithm as far as I can see, is exactly what you wrote in your post: cycle through records, updating # number to max of 18 and compute the FICA, Health, etc.I would open a recordset and loop to EOF, calling sub-routines or functions to do calculations on each record.
Gwenda -
WSabach
AskWoody LoungerJune 24, 2002 at 4:15 pm #596648Thanks, Gwenda. The only item I’m fuzzy on would be how to construct a table to hold the multipliers, etc. So many times I see people recommending NOT to use DLookup, and am curious as to any other method of finding these values….
I would use this if necessary. Just wondering if there is a better way. -
WSgellwood
AskWoody LoungerJune 24, 2002 at 4:32 pm #596651Hi Allan,
I would create a new table with one record in it to hold your multipliers. Then begin your “run” through the database by opening the table with your values and reading them into memory variables and then closing the table and then do the rest of your processing by referencing the memory variables.Maybe Charlotte or other lumineries will have a different approach.
Gwenda -
WScharlotte
AskWoody LoungerJune 25, 2002 at 2:54 am #596767Another way to do it? There are probably dozens of ways to do it.
One I use a lot is to create a series of public functions, one for each “constant” value you might look up in your table (by the way, I use a table with multiple records, but only two fields, ConstName and ConstValue. I create a record for each “constant” I was to retrieve, and this way it’s open-ended). Each function has a static variable in it, and it only does a DLookup if the variable is empty. Otherwise, it just returns the value of the static variable. It is not as breakable as global variable, and will fix itself if it breaks. Global variables break whenever you encounter an unhandled error in your application. Plus, you can call it in queries or wherever, which is not true of a variable.
-
WSgellwood
AskWoody Lounger -
WSabach
AskWoody Lounger
-
-
-
-
Viewing 0 reply threads -

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
-
WARNING about Nvidia driver version 572.83 and 4000/5000 series cards
by
Bob99
54 minutes ago -
Creating an Index in Word 365
by
CWBillow
1 hour ago -
Coming at Word 365 and Table of Contents
by
CWBillow
1 hour, 5 minutes ago -
Windows 11 Insider Preview Build 22635.5170 (23H2) released to BETA
by
joep517
6 hours, 1 minute ago -
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
9 hours, 27 minutes ago -
W11 24H2 – Susan Bradley
by
G Pickerell
11 hours, 22 minutes ago -
7 tips to get the most out of Windows 11
by
Alex5723
9 hours, 23 minutes ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
2 hours, 45 minutes ago -
I installed Windows 11 24H2
by
Will Fastie
1 hour, 4 minutes ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
14 hours, 49 minutes ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
1 hour, 45 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
23 hours, 4 minutes ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
7 hours, 16 minutes ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
7 hours, 31 minutes ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
1 day, 16 hours ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
2 days ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
1 day, 2 hours ago -
Mail from certain domains not delivered to my outlook.com address
by
pumphouse
1 day, 9 hours ago -
Is data that is in OneDrive also taking up space on my computer?
by
WShollis1818
1 day, 19 hours ago -
Nvidia just fixed an AMD Linux bug
by
Alex5723
3 days, 11 hours ago -
50 years and counting
by
Susan Bradley
9 hours, 41 minutes ago -
Fix Bluetooth Device Failed to Delete in Windows Settings
by
Drcard:))
12 hours, 30 minutes ago -
Licensing and pricing updates for on-premises server products coming July 2025
by
Alex5723
3 days, 22 hours ago -
Edge : Deprecating window.external.getHostEnvironmentValue()
by
Alex5723
3 days, 22 hours ago -
Rethinking Extension Data Consent: Clarity, Consistency, and Control
by
Alex5723
3 days, 22 hours ago -
OneNote and MS Word 365
by
CWBillow
4 days ago -
Ultimate Mac Buyers Guide 2025: Which Mac is Right For You?
by
Alex5723
4 days ago -
Intel Unison support ends on Windows 11 in June
by
Alex5723
4 days ago -
April 2025 — still issues with AMD + 24H2
by
Kevin Jones
1 day, 16 hours ago -
Windows 11 Insider Preview build 26200.5518 released to DEV
by
joep517
4 days, 12 hours 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.