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

Print Bookmark and Share

In Access, the Second function returns a number between 0 and 59, inclusive, representing the second of the minute of the hour.

The syntax for the Second function is:

Second ( time )

The required time argument is any numeric or string expression, that can represent a time. If number is Null, this function returns a Null.

Examples

Second (#05/05/1985 3:45:21 PM#)      returns 21
Second (#10:07:43 AM#)                     returns 43

VBA Code

Dim MySecond As Integer 
MySecond = Second(#4:12:27#)

This example uses the Second function to obtain the second of the minute from a specified time. Now the MySecond variable would contain the value of 27.

SQL query

You can also use the Second function in a query.

SELECT Second(#10:02:54 PM#) 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.
 
 
ASPRunner Professional - Web Developer's Nirvana
Web hosting from $5/month (PHP,ASP,MySQL,unlimited emails)



Tags: ACCESS FUNCTION SECOND RANGE REPRESANTATION SECOND MINUTE HOUR

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.