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: Log Function

Print Bookmark and Share

In Access, the Log function returns the natural logarithm of a number. The natural logarithm is the logarithm to the base e. The constant e is approximately 2.718282.

The syntax for the Log function is:

Log ( number )

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

Log(3.1)        returns 1,1314021115
Log(5)           returns 1,6094379124
Log(17)         returns 2,8332133441

VBA Code

Dim MyNumber
MyNumber = Log(14)

This example uses the Log function to return the natural logarithm of a number. Now the MyNumber variable would contain the value 2,6390573.

SQL query

You can also use the Log function in a query.

SELECT Log([OwnerId]) AS Expr1
FROM Orders


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.
 
 
PHPRunner. Build great looking PHP+MySQL web sites with no programming
Web hosting (PHP,ASP,MySQL,SQL server,unlimited emails)



Tags: ACCESS FUNCTION LOG LOGARITHM NATURAL EXPONENT CONSTANT

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.