I struggle with this program!!!!!!! Give me an old dBase app anytime!.
Can somebody please advise me on how to get Access 97 to put the combined “surname” “, ” firstname” into a fullname field in the same table????
Or, how do I get a query to run that will do it when the appropriate data is entered?
Thanks from an oldie
Bob
![]() |
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 |
-
Calculated fields in a table (Access 97)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Calculated fields in a table (Access 97)
- This topic has 6 replies, 4 voices, and was last updated 23 years, 9 months ago.
AuthorTopicWSBob Kinzett
AskWoody LoungerJuly 29, 2001 at 11:52 pm #358517Viewing 0 reply threadsAuthorReplies-
WSJudyJones
AskWoody LoungerJuly 30, 2001 at 12:03 am #535154 -
WSBob Kinzett
AskWoody Lounger -
WScharlotte
AskWoody LoungerJuly 30, 2001 at 12:30 am #535159You’re doing it the wrong way for Access, yes. The names or any other data should only exist in a single table, never in more than one, that’s a basic tenet of relational design. In other locations, you use a key that will allow you to link to the data, and in my experience, the autonumber is perfect for that sort of linking.
Instead of using the full name, add a unique autonumber key to the table that contains the first and last names. Then use that autonumber as the link field to other tables. You’ll still be able to use the concatenated first and last name for display purposes when the two tables are linked, but you won’t have to worry about how to fix it if you misspell someone’s name.
-
WSBob Kinzett
AskWoody LoungerJuly 31, 2001 at 12:11 am #535268Thanks Charlotte, thats basically what I’ve ended up doing at this stage.
Perhaps you, or somebody, could provide a bit more advice.
The database I’m working on is simply to record details of school truancies.
Two tables
—- Student Data, containing:
ID
surname (25 chars)
first (25 chars)
contact Phone No. (10 digits)—– Truancy Data, containing
Date of Abscence (medium date)
Category (Absent or Late, 6 chars)
Sign-in time (if Late, medium time)
Comments results of phone call to parents, memo field)As you can imagine, some kids are truant or late more than others…
I need the system to detect if the name I am entering already exists in the database. If so, just add truancy details, else add student details then truancy details.As I said before, I grew up programming in a linear fashion (and the above problem was easily solved), but this old fogey
(although not quite an idiot
) is struggling to come to grips with Access and the modern, event/object oriented, GUI based stuff.
Any assistance gratefully appreciated and recognised
Bob -
WScharlotte
AskWoody LoungerJuly 31, 2001 at 1:50 am #535276Add your student ID to the Truancy data and you’ve got a one-to-many join. The simplest way is to use a form with a combobox on it for the name, assuming you don’t have more than a few hundred students. If you have more, there are ways to filter the list down. The combobox would contain colums for the Student ID and their name, although you would set the width of the Student ID to 0″ so that it doesn’t actually show in the combobox. Then all you have to do is type in a name and the combobox will look for a match. If the student isn’t in the list, you an use the NotInList event of the combobox to add the student to the list or you can do it using a popup form, among other methods.
You’ll need to find a way to keep names unique, so you may need an additional field with a number in it (not the autonumber, though) that you increment wheneve you run across still another John Jones. You would create a unique multi-field key on the first and last names and the incremental number, which could default to zero for new names and increment thereafter as needed.
Does that help?
-
WSJimDettman
AskWoody LoungerJuly 31, 2001 at 8:20 am #535292Bob,
I would not put a duplicate check on the name, but instead on the phone number.
If that is not workable, then you’ll need to add more info to the student table to prevent duplicates or you may find that you cannot prevent them and will need the human touch to keep them from happening (ie. display a list of sudents when a name is keyed in and allow the user to pick one). It really all boils down to how do you really identify a student?
Jim.
-
-
-
-
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
-
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
3 hours, 56 minutes ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
1 hour, 54 minutes ago -
Auto Time Zone Adjustment
by
wadeer
8 hours, 25 minutes ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
6 hours, 5 minutes ago -
Manage your browsing experience with Edge
by
Mary Branscombe
3 minutes ago -
Fewer vulnerabilities, larger updates
by
Susan Bradley
19 minutes ago -
Hobbies — There’s free software for that!
by
Deanna McElveen
1 hour, 54 minutes ago -
Apps included with macOS
by
Will Fastie
1 hour, 31 minutes ago -
Xfinity home internet
by
MrJimPhelps
1 hour, 26 minutes ago -
Convert PowerPoint presentation to Impress
by
RetiredGeek
1 hour, 24 minutes ago -
Debian 12.11 released
by
Alex5723
1 day, 5 hours ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
1 day, 9 hours ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
12 hours, 41 minutes ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
5 hours, 5 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
2 days, 2 hours ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
1 day, 16 hours ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
2 days, 4 hours ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
1 day, 21 hours ago -
Some advice for managing my wireless internet gateway
by
LHiggins
1 day, 4 hours ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
6 hours, 36 minutes ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
2 days, 14 hours ago -
Sometimes I wonder about these bots
by
Susan Bradley
2 hours, 26 minutes ago -
Does windows update component store “self heal”?
by
Mike Cross
2 days ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
3 days, 4 hours ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
1 day, 12 hours ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
1 day ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
3 days, 6 hours ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
3 days, 7 hours ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
1 hour, 38 minutes ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
3 days, 15 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.