One would be to convert text to number ... a query that uses the CInt() (or
CCur(), or CLng(), or ...) "conversion" function might help.
Then, the issue of formatting for display. Formatting as an integer (short
or long) will only display "whole numbers" (the definition of integer). If
you need up to four decimal places (but no more), the currency data type
does that accurately. If you'll need more than four places, take a look at
single, double and decimal data types and formatting.
Good luck!
Regards
Jeff Boyce
Microsoft Office/Access MVP
"twalsh" <twa...@discussions.microsoft.com> wrote in message
news:D7BE1A60-2267-488C...@microsoft.com...
CDbl([billable hours])
"need to be able to manipulate and calculate with the data, which they
can't do if it is sent as text."
Even though it is text in Access, I think you may find that Excel will
treat it as a number without doing anything special...
Warm Regards,
Crystal
*
(: have an awesome day :)
*
Use the Val() function to convert a string to a number, e.g. from the Debug
(immediate) window:
x = "34.3"
? val(x)
34.3
To show that val(x)is a number
? cdbl(val(x))
34.3
HTH - Bob
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-queries/200804/1
when Billable Hours= 8.40
CDbl(Val([Billable Hours])) returns 8.00
and Val([Billable Hours]) also returns 8.00
Keep in mind that BillableHours is a string, Example:
BillableHours= "8.40"
? val(billablehours)
8.4
? CDbl(Val(BillableHours))
8.4
Bob
twalsh wrote:
>This seems to be progress, it im is converting to number, however it is
>rounding. Ex:
>
>when Billable Hours= 8.40
>
>CDbl(Val([Billable Hours])) returns 8.00
>
>and Val([Billable Hours]) also returns 8.00
>
>> Hi -
>>
>[quoted text clipped - 25 lines]