-
WSjhamilton
AskWoody LoungerIs such special handling something best left to an accomplished programmer (something I’m not) or are the solutions simple enough that I can understand and implement them? BTW, I have to deal with close to 40,000 records, of which a few hundred change each month. There’s no easy way to know each month which records may have these unique naming characteristics.
-
WSjhamilton
AskWoody LoungerI spoke a bit too soon. When I tried it on a larger set of data, I noticed a couple of problems. First, the routine doesn’t deal properly with the following data: JOSLIN,BARBARA A ETAL. I get the following result: JOSLINE BARBARA A ET AL when it should be BARBARA A JOSLIN ETAL. I think we need to add a procedure that searches for the unique endings (TR, ETAL) and stores that to a variable, say ENDING. Then if there’s a comma, the string to the left of the comma gets stored to a variable LASTNAME. Then we store the string data to the right of the comma to a variable up to but excluding the unique ending string, if it exists, and call that FIRSTNAME. Then we rebuild the name as FIRSTNAME &” “& LASTNAME& ” “& ENDING. I don’t know how to code this and don’t know if I’m on the right track, but these are my thoughts.
Second, the procedure doesn’t deal properly with last names that begin with TR: AGUILAR,TRINIDAD or BRISENO,TRIFUNO & ANA TR (the last one’s really nasty). If we could deal with the first of the two it would be great. I can accept that a canned routine probably can’t deal with all possible versions of the data.
I’ve attached another copy of the database. Note that I added lines to the code trying to cover more versions of the ending, but it didn’t seem to help.
-
WSjhamilton
AskWoody LoungerI spoke a bit too soon. When I tried it on a larger set of data, I noticed a couple of problems. First, the routine doesn’t deal properly with the following data: JOSLIN,BARBARA A ETAL. I get the following result: JOSLINE BARBARA A ET AL when it should be BARBARA A JOSLIN ETAL. I think we need to add a procedure that searches for the unique endings (TR, ETAL) and stores that to a variable, say ENDING. Then if there’s a comma, the string to the left of the comma gets stored to a variable LASTNAME. Then we store the string data to the right of the comma to a variable up to but excluding the unique ending string, if it exists, and call that FIRSTNAME. Then we rebuild the name as FIRSTNAME &” “& LASTNAME& ” “& ENDING. I don’t know how to code this and don’t know if I’m on the right track, but these are my thoughts.
Second, the procedure doesn’t deal properly with last names that begin with TR: AGUILAR,TRINIDAD or BRISENO,TRIFUNO & ANA TR (the last one’s really nasty). If we could deal with the first of the two it would be great. I can accept that a canned routine probably can’t deal with all possible versions of the data.
I’ve attached another copy of the database. Note that I added lines to the code trying to cover more versions of the ending, but it didn’t seem to help.
-
WSjhamilton
AskWoody LoungerPerfect! Thanks so much for your response. You saved me lots of headaches.
-
WSjhamilton
AskWoody LoungerPerfect! Thanks so much for your response. You saved me lots of headaches.
-
WSjhamilton
AskWoody LoungerYour sample database and module did the trick. I modified the code in the last line as follows–
ChangeName = Trim(Mid$(strName, intPosComma + 1)) & ” ” & Trim(Left$(strName, intPosComma – 1)) & strSpecial
That way it deals properly with data such as
Smith,Jones
Smith , Jonesetc.
Thanks very much for your help.
Jeff
-
WSjhamilton
AskWoody LoungerThank you for your response. I’ve tried to use your code, but can’t get it to work. I’ve never used VBA before. I entered the code in a Module window and saved the results. Question 1: Any idea why 2 module windows with seemingly identical contents opened up? I created a new Update Query and put the following phrase in the Update To: criteria–
ChangeName([Owner])
But when I ran the query I received an error that said–
Undefined function “ChangeName” in expression.
Question 2: What am I doing wrong?
I have a module named ChangeName with your code in it. I have a Test table with 2 fields: Owner (populated with a few dummy records) and NewOwner (empty and waiting to be populated by the Update query). The Update Query only has the Test table associated with it. The update field is NewOwner.
Thanks for your help.
-
WSjhamilton
AskWoody LoungerA follow up question. If the data is as follows:
Smith, John
Jones Industrieswhat would InStr(1,[Owner]) return? Why is the number 1 in front of the field name? I don’t see how this works since InStr searches for something within a string, and 1 isn’t a string as used in the argument.
Thanks for your help.
-
WSjhamilton
AskWoody LoungerThank You! I had no idea it returned the position. I’ve looked all through the online help, the Que Access 2000 book, and the Access 2000 manuals without finding a description of the function. Maybe I overlooked it.
Thanks again.
-
WSjhamilton
AskWoody LoungerI found the problem–my sound card was not fully supported by XP Pro. I got system sounds fine, and some music, cut cd’s were no good. Went out and bought a SB 16 PCI and everything’s fine now.
-
WSjhamilton
AskWoody LoungerI’ve tried this with new and old Cd’s. No difference. I never had this problem when I used NT Workstation. I have the latest hardware drivers and software patches. Any other ideas what might be going on?
-
WSjhamilton
AskWoody LoungerEureka! I removed the computer from the domain and assigned it to the workgroup, now I can add printers. No idea why this matters, but at least I have a solution. Thanks again for your help.
-
WSjhamilton
AskWoody LoungerI only understood some of the first part. I still don’t really understand what a domain is. If I’ve assigned the user ID administrator rights on both the NT server and the XP machine, how can there be an issue of access privileges?
I did have printer access before the rebuild.
How do I turn off the firewall?
Do you know how to remove the computer from the domain and merely assign it to a workgroup?
Thanks very much for your time and assistance on an apparently difficult problem.
-
WSjhamilton
AskWoody LoungerWhat’s the difference? Are network admin rights assigned under NT, XP or Novell? I have access to the NT Server (I’m the administrator), I have access to the XP Pro machine (my own), but I don’t have access to Novell naming or rights.
-
WSjhamilton
AskWoody LoungerThanks for the info.
![]() |
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 |

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 7 ISO /Windows 10 ISO
by
ECWS
5 hours, 5 minutes ago -
No HP software folders
by
fpefpe
5 hours, 49 minutes ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
54 minutes ago -
Stay connected anywhere
by
Peter Deegan
11 hours, 12 minutes ago -
Copilot, under the table
by
Will Fastie
2 hours, 25 minutes ago -
The Windows experience
by
Will Fastie
17 hours, 26 minutes ago -
A tale of two operating systems
by
Susan Bradley
8 hours, 23 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
22 hours, 46 minutes ago -
Where’s the cache today?
by
Up2you2
1 day, 14 hours ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
1 day, 6 hours ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
7 hours, 12 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
1 day, 14 hours ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
2 days, 7 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
2 days, 7 hours ago -
regarding april update and may update
by
heybengbeng
2 days, 8 hours ago -
MS Passkey
by
pmruzicka
1 day, 10 hours ago -
Can’t make Opera my default browser
by
bmeacham
2 days, 16 hours ago -
*Some settings are managed by your organization
by
rlowe44
2 days, 3 hours ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
2 days, 15 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
3 days, 11 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
3 days, 20 hours ago -
AI slop
by
Susan Bradley
1 day, 14 hours ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
3 days, 21 hours ago -
Two blank icons
by
CR2
1 day, 5 hours ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 7 hours ago -
End of 10
by
Alex5723
4 days, 9 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
3 days, 6 hours ago -
test post
by
gtd12345
4 days, 15 hours ago -
Privacy and the Real ID
by
Susan Bradley
4 days, 5 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
2 days, 7 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.