Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Difference between left() and left$() 1

Status
Not open for further replies.

Spike1950

Instructor
Jul 21, 2002
4
0
0
BE
I know how to use functions, but I can't seem to find any explanation on when to use the built-in functions that come with a dollar sign. Not even in the Access Bilble. When do I use a function like Left() without $, and when should I use Left$() with the sign?

Any clear information on this would be very much appreciated.
 
Left() returns a variant. Left$() returns a string. The vast majority of the time it doesn't make any difference. If you know you want to return a string use Left$().

There are lots of other functions that have the same dual personalities. Have a look in the expression builder for more examples.

Hope this helps.

Ed Metcalfe.

Please do not feed the trolls.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top