MS Access Val() Function
Example
Read a string and return the numbers found in the string:
SELECT Val(PostalCode) FROM Customers;
Try it Yourself »
Definition and Usage
The Val() function reads a string and returns the numbers found in the string.
Note: This function stops reading once it encounters a NON-numeric character.
Syntax
Val(string)
Parameter Values
Parameter | Description |
---|---|
string | Required. A string expression |
Technical Details
Works in: | From Access 2000 |
---|
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.