Splitting a number

humph

Registered User.
Local time
Today, 01:02
Joined
Sep 7, 2006
Messages
69
Can anyone help me to split a number using an access query to the left and right of the decimal point. I found it in a reference somewhere but have lost it. the number is generated in a query and I need to do something with the fraction

Thanks
 
Check out the built-in Access Split() function. I think it has been a part of Access since Access 2000.
 
Int([YourNumber]) will strip off the decimal portion of the number if it is numeric and ([YourNumber] - Int([YourNumber])) will give you the decimal part.
 
THanks for this guys - I knew it had to be reasonably straightforward - am about to try it.
 
The Int option worked perfectly - thanks again
 

Users who are viewing this thread

Back
Top Bottom