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

Print Bookmark and Share

In Access, the Str function returns string representation of a number.

The syntax for the Str function is:

Str( number )

The required number argument is a Long containing any valid numeric expression. When numbers are converted to strings, a leading space is always reserved for the sign of number. If number is positive, the returned string contains a leading space and the plus sign is implied.

Example

Str (7)          returns " 7"
Str (-154)     returns "-154"

VBA Code

Dim MyString
MyString = Str(367)

This example uses the Str function to return a string representation of a number. Now the MyString variable would contain the value " 367 ".

SQL query

You can also use the Str function in a query.

SELECT Str(7) 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.NET - code generator for ASP.NET
Web hosting from $5/month (PHP,ASP,MySQL,unlimited emails)



Tags: ACCESS FUNCTION STR STRING REPRESENTATION

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.