converting text to number

B

Barb

I have been supplied with data extracted from a third party database. I have
two CSV files for two different tables. I have also been given an Access
2003 database that the two CSV tables have been imported into and linked via
a query. The problem is that one of the fields should be a number with one
decimal place. It currently exists a text field in Access. When I change
the design of the field in Access from text to number (1 decimal place) I get
a number that is rounded to a whole number and lose the decimal place. What
am I doing wrong?
 
S

Steve Schapel

Barb,

When you change it to Number data type, you will have to use a setting
for the Field Size property that supports decimals, i.e. Single or
Double, not Integer or Long Integer.

Alterrnatively, you can change the Data Type to Currency... that's what
I would probably do.
 
M

malvernbill

Steve,

You're a lifesaver! I had a similar problem in that when I imported an excel
file with the numbers formatted as text, the numbers right of the decimal
point were truncated. Switching the field size to 'double' did the trick!

Thanks again,

Bill
 

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