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

Home / SQL / Access Functions

 

 

Access: Tan Function

Print Bookmark and Share

In Access, the Tan function returns the tangent of an angle.

The syntax for the Tan function is:

Tan ( number )

The argument number can be any valid numeric expression that expresses an angle in radians. Tan takes an angle and returns the ratio of two sides of a right triangle. The ratio is the length of the side opposite the angle divided by the length of the side adjacent to the angle.

Tan (15)     returns -0,855993400
Tan (2)      returns -2,185039863

VBA Code

Dim MyNumber
MyNumber = Tan(2.5)

This example uses the Tan function to return the tangent of an angle. Now the MyNumber variable would contain the value -0,747022.

SQL query

You can also use the Tan function in a query.

SELECT Tan([OwnerId]) AS Expr1
FROM Orders


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

Need help with ASP, PHP, Javascript?

Let our experts help you.
 
 
PHPRunner. Build great looking PHP+MySQL web sites with no programming
Web hosting (PHP,ASP,MySQL,SQL server,unlimited emails)



Tags: ACCESS FUNCTION TAN TANGENT ANGLE

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.