Home page
 
 Home 
 ASP 
 PHP 
 SQL 
 HTML 
 JavaScript 
 Search 
 Contact 
 
Search
or browse popular tags
Got questions?

We got answers.

Ask your question about PHP, ASP, Javascript, HTML, CSS, hosting and get professional help, free of charge.

Access Functions
Subscription

Sign up for the free email newsletter for new tips, tutorials and more. Enter your email address below, and then click the button.

Privacy Policy

RSS Twitter

Access: Sqr Function

Print Bookmark and Share

In Access, the Sqr function returns the square root of a number.

The syntax for the Sqr function is:

Sqr ( number )

The argument number can be any valid numeric expression greater than or equal to zero.

Sqr (0)      returns 0
Sqr (3)      returns 1,73205
Sqr (16)     returns 4

VBA Code

Dim MyNumber
MyNumber = Sqr(15)

This example uses the Sqr function to calculate the square root of a number. Now the MyNumber variable would contain the value 3,8729833.

SQL query

You can also use the Sqr function in a query.

SELECT Sqr([BuyerId]) AS Expr1
FROM Antiques


If you'd like to see how it works, enter SQL statement and press Execute
 

Free Contact Form

Need help with ASP, PHP, Javascript?

Let our experts help you.
 
 
ASPRunner Professional - Web Developer's Nirvana
Web hosting (PHP,ASP,MySQL,SQL server,unlimited emails)



Tags: ACCESS FUNCTION SQR SQUARE ROOT

Add To: Add to dzone dzone | Digg this digg | Add to del.icio.us del.icio.us | Stumble it stumbleupon

  • Comments





Copyright © 2005-2009             www.WebCheatSheet.com All Rights Reserved.