Home page
 
 Home 
 ASP 
 PHP 
 SQL 
 HTML 
 JavaScript 
 Search 
 Contact 
 
Search
or browse popular tags
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: Last Function

Print

In Access, the Last function return a field value from the last record in the result set of a query.

The syntax for the Last function is:

Last ( expression )

The required expression argument is the value that you'd like to return from the result set. The Last function returns only the last value in the result set..

Example

Last (ItemDesired)

VBA Code

Dim MyResult as String
MyResult = Last(ItemDesired)

This example uses the Last function to return the last ItemDesired value.

SQL query

You can also use the Last function in a query.

SELECT Last([ItemDesired]) AS Expr1
FROM Orders


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




Tags:

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

  • Comments





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