472,125 Members | 1,452 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Forcing Zero in Social Security Number Field and Putting Cursor at Left for Data Entry

Problem:

Social Security number being used in a database. First problem is
that it will not permit numbers beginning in zero to be entered - it
sees it as a null or empty space from what I can tell.

Next, foreign students have & as the initial part of their SSN. How
to do this??

Finally, how do I force the cursor to the far left of the field so the
person doing data entry does not have to backspace to the beginning of
the data entry field?

Please be specific - not a sophisticated person making the program!

Thanks.
Nov 12 '05 #1
6 4702
Social Security Numbers are not numbers even though they say they are. They are
text because they can start with 0, start with & and US SSNs have two dashes. So
you need to go to your table and change the data type of your SSN field to text.
All your problems will go away!

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
<Sami> wrote in message news:4q********************************@4ax.com...
Problem:

Social Security number being used in a database. First problem is
that it will not permit numbers beginning in zero to be entered - it
sees it as a null or empty space from what I can tell.

Next, foreign students have & as the initial part of their SSN. How
to do this??

Finally, how do I force the cursor to the far left of the field so the
person doing data entry does not have to backspace to the beginning of
the data entry field?

Please be specific - not a sophisticated person making the program!

Thanks.

Nov 12 '05 #2
In article <ta*****************@newsread3.news.atl.earthlink. net>,
sp**@nospam.spam says...
Social Security Numbers are not numbers even though they say they are. They are
text because they can start with 0, start with & and US SSNs have two dashes. So
you need to go to your table and change the data type of your SSN field to text.
All your problems will go away!

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
<Sami> wrote in message news:4q********************************@4ax.com...
Problem:

Social Security number being used in a database. First problem is
that it will not permit numbers beginning in zero to be entered - it
sees it as a null or empty space from what I can tell.

Next, foreign students have & as the initial part of their SSN. How
to do this??

Finally, how do I force the cursor to the far left of the field so the
person doing data entry does not have to backspace to the beginning of
the data entry field?

Please be specific - not a sophisticated person making the program!

Thanks.


ARGH That is horrid! A number is not text simply bcasue it starts with
a zero... That is (IMHO) very poor programming. You are mixing the
storage of a value with the display there of. Look in the formatting of
the controls you use to input/display the SSN and you will see how to
handle SSNs that begin with one or more 0s without bastardizing your
data.
Nov 12 '05 #3
How do I do this? Where would I look if you do not want to tell me,
and what is it called? Thanks.

On Wed, 14 Apr 2004 06:33:14 GMT, Ima Lostsoul <me@myprovider.com>
wrote:
In article <ta*****************@newsread3.news.atl.earthlink. net>,
sp**@nospam.spam says...
Social Security Numbers are not numbers even though they say they are. They are
text because they can start with 0, start with & and US SSNs have two dashes. So
you need to go to your table and change the data type of your SSN field to text.
All your problems will go away!

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
<Sami> wrote in message news:4q********************************@4ax.com...
> Problem:
>
> Social Security number being used in a database. First problem is
> that it will not permit numbers beginning in zero to be entered - it
> sees it as a null or empty space from what I can tell.
>
> Next, foreign students have & as the initial part of their SSN. How
> to do this??
>
> Finally, how do I force the cursor to the far left of the field so the
> person doing data entry does not have to backspace to the beginning of
> the data entry field?
>
> Please be specific - not a sophisticated person making the program!
>
> Thanks.


ARGH That is horrid! A number is not text simply bcasue it starts with
a zero... That is (IMHO) very poor programming. You are mixing the
storage of a value with the display there of. Look in the formatting of
the controls you use to input/display the SSN and you will see how to
handle SSNs that begin with one or more 0s without bastardizing your
data.


Nov 12 '05 #4
<<A number is not text simply bcasue it starts with a zero>>

Can you give me one example of a number that starts with a zero?

Steve
PC Datasheet
"Ima Lostsoul" <me@myprovider.com> wrote in message
news:MP************************@netnews.comcast.ne t...
In article <ta*****************@newsread3.news.atl.earthlink. net>,
sp**@nospam.spam says...
Social Security Numbers are not numbers even though they say they are. They are text because they can start with 0, start with & and US SSNs have two dashes. So you need to go to your table and change the data type of your SSN field to text. All your problems will go away!

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
<Sami> wrote in message news:4q********************************@4ax.com...
Problem:

Social Security number being used in a database. First problem is
that it will not permit numbers beginning in zero to be entered - it
sees it as a null or empty space from what I can tell.

Next, foreign students have & as the initial part of their SSN. How
to do this??

Finally, how do I force the cursor to the far left of the field so the
person doing data entry does not have to backspace to the beginning of
the data entry field?

Please be specific - not a sophisticated person making the program!

Thanks.


ARGH That is horrid! A number is not text simply bcasue it starts with
a zero... That is (IMHO) very poor programming. You are mixing the
storage of a value with the display there of. Look in the formatting of
the controls you use to input/display the SSN and you will see how to
handle SSNs that begin with one or more 0s without bastardizing your
data.

Nov 12 '05 #5
Ima Lostsoul <me@myprovider.com> wrote in
news:MP************************@netnews.comcast.ne t:
In article
<ta*****************@newsread3.news.atl.earthlink. net>,
sp**@nospam.spam says...
Social Security Numbers are not numbers even though they say
they are. They are text because they can start with 0, start
with & and US SSNs have two dashes. So you need to go to your
table and change the data type of your SSN field to text.
All your problems will go away!

--
PC Datasheet
Your Resource For Help With Access, Excel And Word
Applications
re******@pcdatasheet.com
www.pcdatasheet.com
<Sami> wrote in message
news:4q********************************@4ax.com...
> Problem:
>
> Social Security number being used in a database. First
> problem is that it will not permit numbers beginning in
> zero to be entered - it sees it as a null or empty space
> from what I can tell.
>
> Next, foreign students have & as the initial part of their
> SSN. How to do this??
>
> Finally, how do I force the cursor to the far left of the
> field so the person doing data entry does not have to
> backspace to the beginning of the data entry field?
>
> Please be specific - not a sophisticated person making the
> program!
>
> Thanks.

ARGH That is horrid! A number is not text simply bcasue it
starts with a zero...

Good grief! a text is not a number just because it contains only
digits. I remember learning, oh about thirty years ago, that you
should us a numeric field if you are going to add, subtract,
multiply or divide the contents thereof, else use type text.

A numeric field may also be used as a key, but you can do it with
text fields as well.
There is no guarantee that future SSNs will contain only the
characters 0 through 9.
That is (IMHO) very poor programming. You are mixing the storage of a value with the display there
of. Look in the formatting of the controls you use to
input/display the SSN and you will see how to handle SSNs that
begin with one or more 0s without bastardizing your data.


Nov 12 '05 #6
CDB
And as the original poster said, he must, now, include "&" in some cases.
That could be misinterpreted as a type-declaration character in a numeric
field.

Clive

"Bob Quintal" <bq******@generation.net> wrote in message
news:82******************************@news.teranew s.com...
Ima Lostsoul <me@myprovider.com> wrote in
news:MP************************@netnews.comcast.ne t:
In article
<ta*****************@newsread3.news.atl.earthlink. net>,
sp**@nospam.spam says...
Social Security Numbers are not numbers even though they say
they are. They are text because they can start with 0, start
with & and US SSNs have two dashes. So you need to go to your
table and change the data type of your SSN field to text.
All your problems will go away!

--
PC Datasheet
Your Resource For Help With Access, Excel And Word
Applications
re******@pcdatasheet.com
www.pcdatasheet.com
<Sami> wrote in message
news:4q********************************@4ax.com...
> Problem:
>
> Social Security number being used in a database. First
> problem is that it will not permit numbers beginning in
> zero to be entered - it sees it as a null or empty space
> from what I can tell.
>
> Next, foreign students have & as the initial part of their
> SSN. How to do this??
>
> Finally, how do I force the cursor to the far left of the
> field so the person doing data entry does not have to
> backspace to the beginning of the data entry field?
>
> Please be specific - not a sophisticated person making the
> program!
>
> Thanks.

ARGH That is horrid! A number is not text simply bcasue it
starts with a zero...

Good grief! a text is not a number just because it contains only
digits. I remember learning, oh about thirty years ago, that you
should us a numeric field if you are going to add, subtract,
multiply or divide the contents thereof, else use type text.

A numeric field may also be used as a key, but you can do it with
text fields as well.
There is no guarantee that future SSNs will contain only the
characters 0 through 9.
That is (IMHO) very poor programming.
You are mixing the storage of a value with the display there
of. Look in the formatting of the controls you use to
input/display the SSN and you will see how to handle SSNs that
begin with one or more 0s without bastardizing your data.

Nov 12 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

116 posts views Thread by Mike MacSween | last post: by
258 posts views Thread by Terry Andersen | last post: by
4 posts views Thread by tony | last post: by

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.