473,786 Members | 2,366 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.O LEDB.4.0
Nov 12 '05 #1
2 18100
> 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**********@pb b.dds.nl (Peter) wrote in
news:df******** *************** ***@posting.goo gle.com:
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.O LEDB.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,"fi ve","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
2065
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 lay-out would look like,
2
1613
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 Null, Primary key, Identity auto increment) (uniqueidentifier, Allow Nulls) (text) When I open the table in datasheet view using Access and type a value
3
2242
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 to the "look up by facility name" form, and opens it up. So far so good. She is able to click on and view every single thing on this pretty complicated form, including opening a variety of secondary forms. However, whenever she clicks on the...
13
2766
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 retired. Further evidence was the default reference to ADO in A2K projects. I chose that route, but to this day, am not certain it was a good choice. I now know that the predictions of the demise of DAO were entirely premature. I'm still working...
4
2543
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 my recordset did not. i read from pasts posts that some references will not convert. so i tried to change the dao 3.51 reference to dao 3.6 in access 97. then i imported all of the objects into an access 2003. it did not work. so my second...
24
2822
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 references in the list, there were only those three I need. Many questions come to mind: 1) How do the references make their way into the list? 2) Must the 197 references in A97 that are unused be deleted? Or must they remain in the list.
4
12284
by: bbdobuddy | last post by:
Hi, How do I open a Microsoft Access 2003 form from Visual Basic.net Thanks in advance bbdobuddy
1
2015
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 reference to an application's type library using the "Tools" menu and selecting the 'DAO 3.6 Object library' in References and that it only has to be done once. What I would like to know is: IS there a way I can spare the user doing this...
0
1418
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 = handle.vendor_id.get(); where handle would represent, in this case, the PCI config space, vendor_id is a particular offset into that space, and get is a method to retrieve the current value. To add complexity, some registers are a set of bits or bit...
1
2217
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 uses the ShowModal method to show the 2nd form. (so first form is hidden and modal) (I think it was showmodal...) But the first form has a list box that I want to reference from the 2nd form. I cannot seem to find a reference to access the...
0
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10163
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10104
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9959
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.