These are the functions that I have so far found to work in Jet queries
executed outside of the Microsoft Access environment. I'm working through
the list of functions in the VBA help file in alphabetical order, and have
still to test functions with names beginning T to Z.
Abs, Asc, AscB, AscW, Atn, CBool, CByte, CCur, CDate, CDbl, Choose, Chr,
Chr$, ChrW, CInt, CLng, Cos, CSng, CStr, CVar, CVDate, Date, Date$, DateAdd,
DateDiff, DatePart, DateSerial, DateValue, Day, DBB, Exp, Fix, Format,
Format$, FV, Hex, Hex$, Hour, IIf, IMEStatus, InStr, InStrB, Int, IPmt,
IsDate, IsEmpty, IsError, IsMissing, IsNull, IsNumeric, IsObject, LCase,
LCase$, Left, Left$, LeftB, LeftB$, Len, LenB, Log, LTrim, LTrim$, Mid,
Mid$, MidB, MidB$, Minute, Month, Now, NPer, Oct, Oct$, Partition, PMT,
PPMT, PV, QBColor, Rate, RGB, Right, Right$, RightB, RightB$, Rnd, Round,
RTrim, RTrim$, Second, Sgn, Sin, SLN, Space, Sqr, Str, Str$, StrComp,
StrConv, String, String$, Switch, SYD.
Note that some of these functions, while they can be used and will not cause
an error, are unlikely to ever return a meaningful result in a query. I
can't, for example, think of any situation in which the IsEmpty, IsMissing,
or IsObject functions can ever return anything other than False in a query.
There is a KB article at the following URL which lists functions available
in Jet queries. However, the results of my tests differ from that list. For
example, the list in the KB article includes the ChrB function, but in my
tests this function fails with an undefined function error message even when
the query is executed within the Microsoft Access environment. I wish I
could trust the KB article, as the testing is really not a whole lot of fun,
but what the heck, the end is in sight now!
http://support.microsoft.com/default.aspx?kbid=294698
--
Brendan Reynolds (MVP)
http://brenreyn.blogspot.com
The spammers and script-kiddies have succeeded in making it impossible for
me to use a real e-mail address in public newsgroups. E-mail replies to
this post will be deleted without being read. Any e-mail claiming to be
from brenreyn at indigo dot ie that is not digitally signed by me with a
GlobalSign digital certificate is a forgery and should be deleted without
being read. Follow-up questions should in general be posted to the
newsgroup, but if you have a good reason to send me e-mail, you'll find
a useable e-mail address at the URL above.