472,993 Members | 3,153 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,993 software developers and data experts.

formula

does anybody know how to distinguish between
Federal TaxId and a Social security number
in code

94-8329211 Taxid
565-31-8321 ssn both 9 characters
i recieve these without the dashes

the incomming field is by taxid or ssn 1 column not 2 columns

Thanks
DAVEL


Aug 21 '08 #1
8 1175
On Aug 21, 1:37*pm, "DaveL" <dvs_...@sbcglobal.netwrote:
does anybody know how to distinguish between
Federal TaxId and a Social security number
in code

94-8329211 Taxid
565-31-8321 *ssn *both 9 characters
i recieve these without the dashes

the incomming field is by taxid or ssn 1 column not 2 columns

Thanks
DAVEL
Check out these sites:
http://www.socialsecurity.gov/history/ssn/geocard.html
http://en.wikipedia.org/wiki/Social_Security_number
http://www.socialsecurity.gov/employer/stateweb.htm

It looks like if the number starts with something less than or equal
to 772 then it's a SSN otherwise it's probably a taxid number but
that's just a guess after skimming these sites.
On another note, I hope those numbers you posted aren't really
someone's SSN and taxid number.

Aug 21 '08 #2
Nope there just numbers i typed out of my head...
to match the formating of ssn and taxid

prob should of used ##-####### and ###-##-###

DaveL

"Israel" <is**********@hotmail.comwrote in message
news:6e**********************************@k13g2000 hse.googlegroups.com...
On Aug 21, 1:37 pm, "DaveL" <dvs_...@sbcglobal.netwrote:
does anybody know how to distinguish between
Federal TaxId and a Social security number
in code

94-8329211 Taxid
565-31-8321 ssn both 9 characters
i recieve these without the dashes

the incomming field is by taxid or ssn 1 column not 2 columns

Thanks
DAVEL
Check out these sites:
http://www.socialsecurity.gov/history/ssn/geocard.html
http://en.wikipedia.org/wiki/Social_Security_number
http://www.socialsecurity.gov/employer/stateweb.htm

It looks like if the number starts with something less than or equal
to 772 then it's a SSN otherwise it's probably a taxid number but
that's just a guess after skimming these sites.
On another note, I hope those numbers you posted aren't really
someone's SSN and taxid number.
Aug 21 '08 #3
MC
On another note, I hope those numbers you posted aren't really
someone's SSN and taxid number.
If there's no hint WHOSE they are, what's the harm?

I'm sure 222-22-2222, 222-22-2223, etc. are Social Security Numbers. I just
don't know whose. i could name thousands more. There's no checksum in
them.

Aug 21 '08 #4
i'll just check the 3rd position if there is a - than ssn
else set to taxid
users have to format one of them

Thanks
DaveL

"MC" <fo**************@www.ai.uga.edu.slash.mcwrote in message
news:OJ**************@TK2MSFTNGP05.phx.gbl...
>On another note, I hope those numbers you posted aren't really
someone's SSN and taxid number.

If there's no hint WHOSE they are, what's the harm?

I'm sure 222-22-2222, 222-22-2223, etc. are Social Security Numbers. I
just don't know whose. i could name thousands more. There's no checksum
in them.

Aug 21 '08 #5
oops 4th Position

"MC" <fo**************@www.ai.uga.edu.slash.mcwrote in message
news:OJ**************@TK2MSFTNGP05.phx.gbl...
>On another note, I hope those numbers you posted aren't really
someone's SSN and taxid number.

If there's no hint WHOSE they are, what's the harm?

I'm sure 222-22-2222, 222-22-2223, etc. are Social Security Numbers. I
just don't know whose. i could name thousands more. There's no checksum
in them.

Aug 21 '08 #6
DaveL wrote:
Nope there just numbers i typed out of my head...
to match the formating of ssn and taxid

prob should of used ##-####### and ###-##-###
Regex could be used to test for those patterns.

Arne
Aug 21 '08 #7
Are you trying to validate a free form text entry? If so, use Regex -- you
can google for the correct match string quickly enough.
"DaveL" <dv*****@sbcglobal.netwrote in message
news:nF*******************@nlpi065.nbdc.sbc.com...
does anybody know how to distinguish between
Federal TaxId and a Social security number
in code

94-8329211 Taxid
565-31-8321 ssn both 9 characters
i recieve these without the dashes

the incomming field is by taxid or ssn 1 column not 2 columns

Thanks
DAVEL


Aug 22 '08 #8
Lee
On Aug 22, 1:55 am, Israel <israeldip...@hotmail.comwrote:
On Aug 21, 1:37 pm, "DaveL" <dvs_...@sbcglobal.netwrote:
snip...
Check out these sites:http://www.socialsecurity.gov/histor...r/stateweb.htm

It looks like if the number starts with something less than or equal
to 772 then it's a SSN otherwise it's probably a taxid number but
that's just a guess after skimming these sites.
On another note, I hope those numbers you posted aren't really
someone's SSN and taxid number.
I have a taxid # that starts 222; so your thoughts on '772' are not
correct :).

Unfortunately, if the numbers are unformatted -- no hyphens, as the
original OP said -- then I don't know of any way to differentiate
them.

--
Lee Silver
Information Concepts Inc.

Aug 22 '08 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ernie | last post by:
Hi, I spent more than an hour wondering why the following works in my Python 2.3.4 Linux box: formula = """ def dummy(): print "This is Ok!" """
2
by: celsius | last post by:
Hi folks, Al Bowers wrote this program on comp.lang.c Date: 2001-07-09 13:41:58 PST #include <stdio.h> int isleap (unsigned yr); static unsigned months_to_days (unsigned month); static long...
2
by: alex | last post by:
I need a more advanced formula than just an average for calculating items rating. I have: raitng value is on scale 1 to 10. s - sum of all ratings for an item n - number of rates (votes)
0
by: RJN | last post by:
Hi I have a main report and a sub report. I have a formula field on the main report and one on the sub report. I want the formula in the subreport to be evaluated after the formula in the main...
0
by: RJN | last post by:
Hi Sorry for posting this message again. I have a main report and a sub report. I have a formula field on the main report and one on the sub report. I want the formula in the subreport to be...
0
by: rjn | last post by:
Hi I have a main report in which I have inserted a sub report. I have a formula field on the main report and one on the sub report. I want the formula in the subreport to be evaluated after the...
3
by: Mike | last post by:
Hi, I have three tables in the following structure (simplified): Table 1: Containing the customers ------------------------------------------------- create table Customers ( int...
11
by: Brian VanPelt | last post by:
I am not a very experienced VB user, but I was trying to make a form that a user could input a formula for summation. For example, I would like the user to input the beginning and end values of...
1
by: barnzee | last post by:
Hi all, newbie here, but having a go I am trying to build a stock watchlist in excel 2007 with a dynamic link to a DDE server (paid for from a broker).There is no add-in or plug-in, I just CTL ALT...
30
by: Barry L. Bond | last post by:
Greetings! I just got a new Peet Brothers Ultimeter 2100 Weather Station. This new one has a way to display the heat index, if you press the "dew point" key twice. Being aware of all the...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.