TRANSFORM txt in number...

User avatar
sal21
PlatinumLounger
Posts: 4364
Joined: 26 Apr 2010, 17:36

TRANSFORM txt in number...

Post by sal21 »

I have a filed formatted text anf have a value numeric similar :1,2,558,5....
Ho to trasnsform the field in number and all value in this field.

Via query is possible?

or

is possible to set the filed in numeric and automaticcly transform text in number?


note:
Access database

User avatar
HansV
Administrator
Posts: 78557
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: TRANSFORM txt in number...

Post by HansV »

Do you want to split the value into multiple fields, or do you want to create multiple records, with one value per record?
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4364
Joined: 26 Apr 2010, 17:36

Re: TRANSFORM txt in number...

Post by sal21 »

HansV wrote:Do you want to split the value into multiple fields, or do you want to create multiple records, with one value per record?
i'm sorry, wrong explain.

"value numeric similar :1,2,558,5..."

consider this:
"value numeric in field1 txt formated similar :
1
2
558
5...

how to move the values in text field1 in field2 just formatted numeric

User avatar
HansV
Administrator
Posts: 78557
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: TRANSFORM txt in number...

Post by HansV »

Assuming that they are all whole numbers, and that you have already created a field Field2 of type Number (Long Integer):

UPDATE MyTable SET Field2 = CLng(Field1)
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4364
Joined: 26 Apr 2010, 17:36

Re: TRANSFORM txt in number...

Post by sal21 »

HansV wrote:Assuming that they are all whole numbers, and that you have already created a field Field2 of type Number (Long Integer):

UPDATE MyTable SET Field2 = CLng(Field1)
TKS!
work...