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
TRANSFORM txt in number...
-
- Administrator
- Posts: 78557
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: TRANSFORM txt in number...
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
Hans
-
- PlatinumLounger
- Posts: 4364
- Joined: 26 Apr 2010, 17:36
Re: TRANSFORM txt in number...
i'm sorry, wrong explain.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?
"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
-
- Administrator
- Posts: 78557
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: TRANSFORM txt in number...
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)
UPDATE MyTable SET Field2 = CLng(Field1)
Best wishes,
Hans
Hans
-
- PlatinumLounger
- Posts: 4364
- Joined: 26 Apr 2010, 17:36
Re: TRANSFORM txt in number...
TKS!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)
work...