Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can i format text as a number in a query field?

Status
Not open for further replies.

scottian

Programmer
Jul 3, 2003
955
GB
how do i format this :-

(Right([TimeDivision],Len([TimeDivision])-2))*60

as a number?

i tried Format( (Right([TimeDivision],Len([TimeDivision])-2))*60) as integer

but it didnt work

"Children are smarter than any of us. Know how I know that? I don't know one child with a full time job and children."...Bill Hicks
 
Perhaps

CInt((Right([TimeDivision],Len([TimeDivision])-2)))*60


 
Thanks for the speedy response mate, but i get

#Error

CInt(Right([TimeDivision],Len([TimeDivision])-2))

"Children are smarter than any of us. Know how I know that? I don't know one child with a full time job and children."...Bill Hicks
 
What about this ?
Val(Mid([TimeDivision],3))

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Sorry JoeAtWork, PHV but still dont get the right answer

I need to multiply this ;-
0.883333333333333 by 60

and get 5.3E+16

but i should get 53.

"Children are smarter than any of us. Know how I know that? I don't know one child with a full time job and children."...Bill Hicks
 
Use this:
CInt(0.88333333333333 * 60)

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top