473,395 Members | 1,677 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Reference of SQL commands in Access?

Does anybody have (a link to) a reference of available SQL commands in
MS-Access? I know you can use SOME VisualBasic commands, but I cannot
find a reference anywhere!
Among other things, I need to use an IF command, like this:
SELECT IF (Field=5,"five","not five") AS NewField FROM Table

I really need a reference on this! I havent been able to find
anything in the Access help files, or the MSDN library.
I am using ASP to access the database through Microsoft.Jet.OLEDB.4.0
Nov 12 '05 #1
2 18077
> Does anybody have (a link to) a reference of available SQL commands in
MS-Access? I know you can use SOME VisualBasic commands, but I cannot
find a reference anywhere!
Search the OH for "Microsoft Jet Database Engine SQL Reserved Words".
Among other things, I need to use an IF command, like this:
SELECT IF (Field=5,"five","not five") AS NewField FROM Table


SELECT IIF([Field]=5,"five","not five") AS NewField FROM Table;

HTH - Peter

--
No mails please.
Nov 12 '05 #2
go**********@pbb.dds.nl (Peter) wrote in
news:df**************************@posting.google.c om:
Does anybody have (a link to) a reference of available SQL commands in
MS-Access? I know you can use SOME VisualBasic commands, but I cannot
find a reference anywhere!
Among other things, I need to use an IF command, like this:
SELECT IF (Field=5,"five","not five") AS NewField FROM Table

I really need a reference on this! I havent been able to find
anything in the Access help files, or the MSDN library.
I am using ASP to access the database through Microsoft.Jet.OLEDB.4.0


When Jet 4.0 is installed

JETSQL40.chm is also installed.

Mine is in:
C:\Program Files\Common Files\Microsoft Shared\Office 10\1033. One can find
it using the Search Utility.

Double clicking on this file should present you with quite a good reference
to JET 4.0 SQL.

(You can also access the contents of this file through Access XP Help (in
the User Interface, not in the VBA Editor.)

User Defined and Native VBA functions can often be used in JET SQL. If they
work in a VBA module then they are likely to work in SQL in Access. But I
think
IF (Field=5,"five","not five") would not work in a VBA module. Possibly you
could use:
IIF(Field=5,"five","not five")
but I am not an expert on IIF, preferring to use other contstructions.

But how could they work in ASP? Access and VBA are not running when one
uses JET from ASP. ASP is running, and I guess, one might be using ADO to
connect to JET. One is usually restricted to the objects and methods of the
technologies one is using.

--
Lyle
(for e-mail refer to http://ffdba.com/contacts.htm)
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: calvin | last post by:
I originally thought that using a reference to access an object is more efficient than using a pointer. Given an simple example like this, int i = 12; int& r = i; int* p = &i; the memory...
2
by: Ebbie | last post by:
Hi, I am designing a SQL server backend, MS Access (ADP) frontend application and I came across an interesting problem. Lets say I have a table T with the following fields(columns) (int Not...
3
by: Siobhan Perricone | last post by:
I have a user who is having a problem with an access database that I didn't build and haven't had anything to do with in the past. The database opens up to the switchboard, and she clicks through...
13
by: Randy Harris | last post by:
Several years ago I became involved in a major Access development project. At the time, A2K was very new and the books were rather strongly suggesting that ADO was the future and DAO would be...
4
by: JMCN | last post by:
object invalid or no longer set - confusion of the recordset in access 2003. i am currently converting from access 97 to access 2003. majority of the codes converted over perfectly fine, though...
24
by: MLH | last post by:
Most people tell me I only need 3 references. It seems that many of my problems are related to references. I don't know what a reference is, quite frankly. I wish that, instead of about 200...
4
by: bbdobuddy | last post by:
Hi, How do I open a Microsoft Access 2003 form from Visual Basic.net Thanks in advance bbdobuddy
1
by: fbowden | last post by:
I have an access database which I wish to run on multiple PCs with a number of differnet users. Part of the the code in this database application uses the DAO 3.6 Object library. I know I can set a...
0
by: pedz | last post by:
I am trying to write a set of classes, probably template classes, to allow "pretty" and safe access to low level machine words. The syntax I would like to end up with is something like: foo =...
1
by: thomasjbs | last post by:
Anyone know a consistent object reference to forms controls? I have 2 forms. The main form instantiates a 2nd form, creates some text and label objects on the 2nd form, hides itself and then...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.