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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Right String

Status
Not open for further replies.

BRANDON99

Technical User
Aug 29, 2003
52
FR
Hi

I have a fiels in a table that has the result of a calculation. The nuber could be eg. 7.85. Is there a way to extract just the decimal part of this fiels ie .85 ?

Many thanks

Brandon
 
Where are you performing this?

Performed in an event procedure on form controls, it could look something like this:

[tt]me!txtResult.value=me!txtCalc.value-int(me!txtCalc.value)[/tt]

Roy-Vidar
 
Hi Roy

The data is in a table, not on a form

Thanks

Brandon
 
Decide wether u want to change your data into the decimal part. I.e. change the number 7.85 into 0.85 or do u want to view it as 0.85. In the first case u would make an update-query, updating Number to Number - int(numer). In the later case, u would make a select query DecNumber: Number - int(Number)
 
I have a fiels (sic) in a table that has the result of a calculation

Do you realize that storing a calculated field breaks normalization rules?


Leslie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top