Queries: Expression Builder '$' Functions (1 Viewer)

J

jastrom

Guest
Of the built-in functions in the query expression builder (Access 2000) there are several functions which have a dollar sign on the end, e.g functions such as TRIM$, FORMAT$, DATE$, LEFT$, etc

Does anyone know what the differences are between the normal functions and the $ ones? I cannot find this anywhere on the net or in any reference books.

Cheers
 

Jon K

Registered User.
Local time
Today, 04:47
Joined
May 22, 2002
Messages
2,209
The following is taken from Access's help:-


Returning Strings from Functions

Some functions have two versions: one that returns a Variant data type and one that returns a String data type. The Variant versions are more convenient because variants handle conversions between different types of data automatically. They also allow Null to be propagated through an expression. The String versions are more efficient because they use less memory.

Consider using the String version when:

Your program is very large and uses many variables.

You write data directly to random-access files.


The following functions return values in a String variable when you append a dollar sign ($) to the function name. These functions have the same usage and syntax as their Variant equivalents without the dollar sign.

Chr$ ChrB$ *Command$
CurDir$ Date$ Dir$
......
......
.
 

Users who are viewing this thread

Top Bottom