Asc

Function that returns the Ascii code which represents a specific character.

Syntax
      Asc (string)

Asc ("A") will return 65

The Asc() function can be used in VBA or in an SQL query.

Examples

In a query:

ASC

In VBA:

Dim intDemo As Integer

intDemo = Asc ("A")
> 65

intDemo = Asc ("ABC")
> 65

“I've nothing much to offer, There’s nothing much to take, I’m an absolute beginner” ~ David Bowie

Related

AscW - Return Unicode code for string
Chr - Return a character based on an ASCII code.


 
Copyright © 1999-2024 SS64.com
Some rights reserved