Using the Abs Function
In this tutorial you will learn how to use the Abs Function.
The Abs function returns a value of the same type that is passed to it specifying the absolute value of a number.
=Abs( number )
number any valid number expression
In this example we will use -1.
The result is 1.
The results using a Query would be
In a Form you could set the Default Value of a Textbox to
In a Form add a TEXTBOX control and rename it "txtAbs", then you could add the following in the Load Event.
Private Sub Form_Load()
txtAbs = Abs(-1)
Access Expert 26
You can find more about this by searching the website.
By: Alex Hedley
Click here to sign up for more FREE tips