dropping in decimals

C

colleen

I know how to make the import file place a decimal and 2
zeros at the end. That is NOT what I want to do. I have
a .txt file i'm importing to a table. It contains data
(dollars) in the following format...22700 or 535
I want access to place a decimal point TWO places from the
right or make it read 227.00 and 5.35. All i can get it
to do is convert them to 22700.00 and 535.00.
Can anyone help me set up my table to have access have a
SET decimal 2 places from the RIGHT in the data, no matter
how many digits the raw data contains?
Thanks
 
A

Armen Stein

I know how to make the import file place a decimal and 2
zeros at the end. That is NOT what I want to do. I have
a .txt file i'm importing to a table. It contains data
(dollars) in the following format...22700 or 535
I want access to place a decimal point TWO places from the
right or make it read 227.00 and 5.35. All i can get it
to do is convert them to 22700.00 and 535.00.
Can anyone help me set up my table to have access have a
SET decimal 2 places from the RIGHT in the data, no matter
how many digits the raw data contains?
Thanks

Hi Colleen,

I'm not sure how to do that during the import, but you could always run
an update query to divide all the numbers by 100.

Update To for MyField: [MyField]/100

Not the exact answer you were looking for, but it would work. Anyone
else know how to do this during import?
 

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