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 » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Change Text field (with numbers) DataType to Number



 
 
Thread Tools Display Modes
  #1  
Old November 4th, 2004, 07:54 PM
Michael Miller
external usenet poster
 
Posts: n/a
Default Change Text field (with numbers) DataType to Number

How do I change a field of text datatype to number, long int datatype, where
all the values in the text field are numbers (within the range of long int)?

I have a field that I evidentally made a text field, which contains all
integer numbers, representing the ID codes for people, in a detail table.
The people table's id is Number/Long Integer.

When I tried to change the type in my detail table, it told me that "300
records -were- deleted" and if I wanted to proceed anyway. I said no and did
not save the table and kept the text field (and MS fooled me again, and I did
not lose that data).

I then tried a query to update the text field to a new, added, Temp field of
type number, long integer, but on View it showed no data being updated.
--
MichaelM
  #2  
Old November 4th, 2004, 08:04 PM
Michael Miller
external usenet poster
 
Posts: n/a
Default

Message to meself.
Looks like it was the "nut behind the wheel" that caused the problem.

I was trying to convert the wrong field. The field I tried was text as was
all the data and none of the data were numbers. They were all department
initials.

When I grabbed the correct field, it worked fine.

"Michael Miller" wrote:

How do I change a field of text datatype to number, long int datatype, where
all the values in the text field are numbers (within the range of long int)?

I have a field that I evidentally made a text field, which contains all
integer numbers, representing the ID codes for people, in a detail table.
The people table's id is Number/Long Integer.

When I tried to change the type in my detail table, it told me that "300
records -were- deleted" and if I wanted to proceed anyway. I said no and did
not save the table and kept the text field (and MS fooled me again, and I did
not lose that data).

I then tried a query to update the text field to a new, added, Temp field of
type number, long integer, but on View it showed no data being updated.
--
MichaelM

 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
text numbers as dates via OCR import Dave Peterson General Discussion 1 August 20th, 2004 01:57 PM
add number to existing text numbers Stacy General Discussion 2 August 12th, 2004 04:59 PM
Restart Autonumber Traci New Users 22 July 21st, 2004 01:10 AM
field that displays text turns to numbers when exported or mail merged kathy New Users 3 May 28th, 2004 10:45 PM
Enter Numbers as Text in Social Security Number Format Frank Kabel Worksheet Functions 0 March 18th, 2004 09:17 PM


All times are GMT +1. The time now is 10:31 AM.


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