Login

Connect
Sign in using Facebook

Access Built-In Functions: Where is Chr()?

1 reply [Last post]
prlaba's picture
prlaba
Offline
Newbie
Joined: Oct 27 2010

I'm new to Access 2010 and am trying to create a calculated field that includes line breaks. When I attempted to add 'Chr(13) & Chr(10)' to my expression, I got an error.

I then opened the Expression Builder and under Functions, the Built-In Functions list. I was surprised to see the Asc() function listed, but not its inverse, Chr().

I worked around the missing Chr() function by using the String() function (String(a,b) returns a string of 'a' repeating characters with Acsii value 'b'; String(1,b) is equivalent to Chr(b)).

I'm curious why Access would include the standard Asc() function but not the equally standard Chr() function. Is this a simple sin of omission, or was there some reason for excluding the Chr() function?

Thanks.

dnerada's picture
dnerada
Offline
Joined: Aug 30 2011

Did you ever find a workaround for this? I am trying to use the Chr and String() function on a Microsoft Access 2010 web published database and I am not getting either of the funtions to work.