Display numbers to the left of a decimal sign

A

AccessIM

I am trying to break down a calculated field ([CasesSold]) to display only
the numbers to the left of the decimal. I am using the line below based off
similar entries found in other discussion groups but the results are not
correct.

FullCasesSold: Left([CasesSold],InStr(1,[CasesSold],".")-1)

The results for field value of 0.25 is correct in that it shows 0 but they
are not all correct. For example, 0.08 shows 8 as the value and 1.00 shows
an #Error.

What am I doing wrong? Any help is greatly appreciated.
 
A

AccessIM

That worked perfectly . . . and so easy! :eek:) Thank you so much for the quick
response.

KARL DEWEY said:
Try this ---
FullCasesSold: Int([CasesSold])

--
KARL DEWEY
Build a little - Test a little


AccessIM said:
I am trying to break down a calculated field ([CasesSold]) to display only
the numbers to the left of the decimal. I am using the line below based off
similar entries found in other discussion groups but the results are not
correct.

FullCasesSold: Left([CasesSold],InStr(1,[CasesSold],".")-1)

The results for field value of 0.25 is correct in that it shows 0 but they
are not all correct. For example, 0.08 shows 8 as the value and 1.00 shows
an #Error.

What am I doing wrong? Any help is greatly appreciated.
 

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