Hi everyone-
I'm trying to convert social security numbers from a text data type to
a number data type, but I lose data on some of the social security
numbers, especially SS#s with 0's in them. For example: 123-45-6789
might become 45-6789. This happens in about 20% of the SS#s.
I tried opening the table then switching text to number. I also tried
creating a new table, changing the field from text to number, then
running an append query, but I still lose data and get incomplete
SS#s.
Can anybody give me any suggestions. I'm not much of a VBA coder yet.
Thanks a bunch!
Megan 2 1593
On 25 Jul 2004 20:27:31 -0700, me**************@hotmail.com (Megan)
wrote: Hi everyone-
I'm trying to convert social security numbers from a text data type to a number data type, but I lose data on some of the social security numbers, especially SS#s with 0's in them. For example: 123-45-6789 might become 45-6789. This happens in about 20% of the SS#s.
I tried opening the table then switching text to number. I also tried creating a new table, changing the field from text to number, then running an append query, but I still lose data and get incomplete SS#s.
Can anybody give me any suggestions. I'm not much of a VBA coder yet.
Question. Why would you want to use a numeric data type for SS#s?
The only reason for a number is to perform an arithmetic operation on
it. Which you should never do on an ID. Answer yourself that question
and then proceed.
- Jim
But 123-45-6789 is not a number it's a string and so should be stored in a
text field.
--
Terry Kreft
MVP Microsoft Access
"Megan" <me**************@hotmail.com> wrote in message
news:5c**************************@posting.google.c om... Hi everyone-
I'm trying to convert social security numbers from a text data type to a number data type, but I lose data on some of the social security numbers, especially SS#s with 0's in them. For example: 123-45-6789 might become 45-6789. This happens in about 20% of the SS#s.
I tried opening the table then switching text to number. I also tried creating a new table, changing the field from text to number, then running an append query, but I still lose data and get incomplete SS#s.
Can anybody give me any suggestions. I'm not much of a VBA coder yet.
Thanks a bunch!
Megan This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Hal Vaughan |
last post by:
If I have a byte and I convert it to string (String sData = new
String(byte bData), then convert it back (byte bData = sData.getBytes()),
will all data be intact, or do Strings have problems with...
|
by: Michael Hill |
last post by:
Hi, folks.
I am writing a Javascript program that accepts (x, y) data pairs from
a text box and then analyzes that data in various ways. This is my
first time using text area boxes; in the past,...
|
by: HelmutMunich |
last post by:
Hello, I am Helmut,
my database for multiuser is Frontend/Backend. The turnover file
is browsed by VBA for Article numbers to be found in the article table.
I use DAO 3.6 lib. The sql Statement...
|
by: Mike |
last post by:
I know this sounds strange but I am at a loss. I am calling a simple
funtion that opens a connection to a SQL Server 2000 database and executes
an Insert Statement.
private void...
|
by: imnewtoaccess |
last post by:
Hi,
I am getting errors while inserting records in one table from another.
These are the structures of two tables :
file51tm_new
RecordType Text
|
by: neha_chhatre |
last post by:
which is the best format specifier(data type) if i have to work with
decimal number.
also please tell me the syntax for truncating a decimal number
please reply as soon as possible
|
by: foxygrandma |
last post by:
I am having data type problems.
The first thing I had to do was convert the weight of one column from kg to lb. I did this by multiplying by 2.20462262 and updating a new column, however, the...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
| |