TYPE CONVERSION FAILURE - text to text field

R

Rony

Hi
I am trying to import data automaticaly from csv file to access database
In csv file data such as K01, J03, M05, imported as 1 , 3, 5, into access
databse and error table indicates "Type Conversion Failure"
Field in access table [ECO-SECTOR] - TEXT FIELD

Please let me know a solution

Thanks
Rony
 
P

pietlinden

Hi
I am trying to import data automaticaly from csv file to access database
In csv file data such as K01, J03, M05, imported as 1 , 3, 5, into access
databse and error table indicates "Type Conversion Failure"
Field in access  table [ECO-SECTOR] - TEXT FIELD

Please let me know a solution

Thanks
Rony

You mean you're trying to write text into a numeric field? That's the
problem. you need to explicitly cast it as an integer, using CInt
(value).

Post your code.
 
R

Rony

Hi
No I am trying to import text data to a text field in to acesss(Like J03)
--
Ron


Hi
I am trying to import data automaticaly from csv file to access database
In csv file data such as K01, J03, M05, imported as 1 , 3, 5, into access
databse and error table indicates "Type Conversion Failure"
Field in access table [ECO-SECTOR] - TEXT FIELD

Please let me know a solution

Thanks
Rony

You mean you're trying to write text into a numeric field? That's the
problem. you need to explicitly cast it as an integer, using CInt
(value).

Post your code.
 
J

John W. Vinson

Hi
I am trying to import data automaticaly from csv file to access database
In csv file data such as K01, J03, M05, imported as 1 , 3, 5, into access
databse and error table indicates "Type Conversion Failure"
Field in access table [ECO-SECTOR] - TEXT FIELD

Please let me know a solution

Thanks
Rony

Well, the text string K01 is not a number, and will not be interpreted as a
number. You'll need to specifically extract the numeric portion. If your
phrase "imported as" means that you're doing so, please explain.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top