B
Bill
I designed an access table(office 2003) and imported from a .csv file.
The import works if the table fields are text. But the first two
columns are numbers and so I would really like to have the the first
two table columns a numeric type. However, if I design the table with
the first two fields as "Number" over 58,000 of the nearly 89,000 rows
hit a type conversion error and do not import. As a result, I cannot
do the sql select statement that I want, but instead have to create a
dataset containing all the rows and then iterate through the dataset
with a for loop, converting the values in the first two columns to
long integers so that I can do a lookup on a specific value. The for
loop is able to convert every one of the strings in the first two
fields to a long, so that establishes all of the data is numeric and
in correct format. Anyone know why the import failed? After importing
as all text, I also tried changing the field type of the first two
fields from text to Number(long int) and that also resulted in type
conversion errors.
The csv file is available at http://ip-to-country.webhosting.info/.
click the downloads link to get it.
The import works if the table fields are text. But the first two
columns are numbers and so I would really like to have the the first
two table columns a numeric type. However, if I design the table with
the first two fields as "Number" over 58,000 of the nearly 89,000 rows
hit a type conversion error and do not import. As a result, I cannot
do the sql select statement that I want, but instead have to create a
dataset containing all the rows and then iterate through the dataset
with a for loop, converting the values in the first two columns to
long integers so that I can do a lookup on a specific value. The for
loop is able to convert every one of the strings in the first two
fields to a long, so that establishes all of the data is numeric and
in correct format. Anyone know why the import failed? After importing
as all text, I also tried changing the field type of the first two
fields from text to Number(long int) and that also resulted in type
conversion errors.
The csv file is available at http://ip-to-country.webhosting.info/.
click the downloads link to get it.