A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

linking fields which may be incomplete



 
 
Thread Tools Display Modes
  #1  
Old April 28th, 2010, 09:56 PM posted to microsoft.public.access.gettingstarted
Access SS
external usenet poster
 
Posts: 4
Default linking fields which may be incomplete

I have a table of 3,000 disciplinary cases from the past four years which my
school has tracked. The identifier we used was a. student's name, and b. the
last four digits of their SSN.

I am now need to find their full SSN. We have a "warehouse" of master
tables, which I can link to. Many of these tables contain the full SSNs of
the students. The question is, is there anyway to link the fields together
(one field including only the last four digits of the SSN, one field which is
the whole SSN) in a way that I can find the full SSN of only the students in
my table of 3,000 disciplinary cases?

Any help would be much appreciated.
--
Access SS
  #2  
Old April 28th, 2010, 10:48 PM posted to microsoft.public.access.gettingstarted
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default linking fields which may be incomplete

If you need to see (or use) only the right-most 4 characters of a string of
characters, you could use a query and the Right() function. Your newly
added query field might look something like (untested):

YourNewField: Right([YourFullSS],4)

Then you'd use THAT field, from THAT query, to try joining...

Good luck!

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"Access SS" wrote in message
...
I have a table of 3,000 disciplinary cases from the past four years which
my
school has tracked. The identifier we used was a. student's name, and b.
the
last four digits of their SSN.

I am now need to find their full SSN. We have a "warehouse" of master
tables, which I can link to. Many of these tables contain the full SSNs
of
the students. The question is, is there anyway to link the fields
together
(one field including only the last four digits of the SSN, one field which
is
the whole SSN) in a way that I can find the full SSN of only the students
in
my table of 3,000 disciplinary cases?

Any help would be much appreciated.
--
Access SS



  #3  
Old April 28th, 2010, 11:23 PM posted to microsoft.public.access.gettingstarted
Dorian
external usenet poster
 
Posts: 542
Default linking fields which may be incomplete

I'll start off by saying you should NEVER use an Access database to store
SSNs. It is just not secure enough.
However, what you will have to do is match on the last 4 characters of the
SSN ensuring that the rest of the SSN is unique since there could be people
with the same last 4 digits but differences in the rest of the digits.
Obviously if there are multiple students with the same last 4 digits, you
cannot match and will have to compare the names which is somewhat unreliable.
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".


"Access SS" wrote:

I have a table of 3,000 disciplinary cases from the past four years which my
school has tracked. The identifier we used was a. student's name, and b. the
last four digits of their SSN.

I am now need to find their full SSN. We have a "warehouse" of master
tables, which I can link to. Many of these tables contain the full SSNs of
the students. The question is, is there anyway to link the fields together
(one field including only the last four digits of the SSN, one field which is
the whole SSN) in a way that I can find the full SSN of only the students in
my table of 3,000 disciplinary cases?

Any help would be much appreciated.
--
Access SS

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:44 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.