The following query changes when I save it:
=============== =============== =============== =============== ======
SELECT
AcctID
FROM
(SELECT
[order number] as AcctID
FROM tblOrderHeader
UNION
SELECT
[AcctID]
from tblExDoc
UNION SELECT
[INVOICE] as AcctID
FROM tblSalesInvoice Header
)
When i save it and reopen it - it morphs into the following (note the last
line):
SELECT AcctID
FROM [SELECT
[order number] as AcctID
FROM tblOrderHeader
UNION
SELECT
[AcctID]
from tblExDoc
UNION SELECT
[INVOICE] as AcctID
FROM tblSalesInvoice Header
]. AS [%$##@_Alias];
=============== =============== =============== =============== ======
Does Access2k not support Select statements in the FROM clause? Or is
something else going on?
Thanks
--
kent eilers ke**@kaeService s.com 4 1682
Kent,
You can change that last part [%$##@_Alias] to [anything you want] and it
won't affect the query results.
What you might be concerned with is your usage of AcctID, Order Number and
Invoice. You seem to be using them interchangeably , and you probably don't
want to do that.
"Kent Eilers" <ka*****@uswest .net> wrote in message
news:yU******** *************@t wister.rdc-kc.rr.com... The following query changes when I save it: =============== =============== =============== =============== ====== SELECT AcctID FROM (SELECT [order number] as AcctID FROM tblOrderHeader
UNION
SELECT [AcctID] from tblExDoc
UNION SELECT [INVOICE] as AcctID FROM tblSalesInvoice Header )
When i save it and reopen it - it morphs into the following (note the last line):
SELECT AcctID FROM [SELECT [order number] as AcctID FROM tblOrderHeader
UNION
SELECT [AcctID] from tblExDoc
UNION SELECT [INVOICE] as AcctID FROM tblSalesInvoice Header ]. AS [%$##@_Alias];
=============== =============== =============== =============== ====== Does Access2k not support Select statements in the FROM clause? Or is something else going on?
Thanks -- kent eilers ke**@kaeService s.com
Thanks - the differences in field names are due to legacy issues with the
project.
what i got to work - which didn't get munched by the Access query parser is
the following - note that this is access 97 syntax! It would appear that
Access2k's query parser converted my ansi standard (with parenthesis's) to
the bracket'ed version of access '97.
SELECT a.*
FROM [SELECT
[order number] as AcctID
FROM tblOrderHeader
UNION
SELECT
AcctID
from tblExDoc
UNION
SELECT
INVOICE as AcctID
FROM tblSalesInvoice Header
]. AS a
ORDER BY 1;
"DFS" <no******@nospa m.com> wrote in message
news:vs******** ****@corp.super news.com... Kent,
You can change that last part [%$##@_Alias] to [anything you want] and it won't affect the query results.
What you might be concerned with is your usage of AcctID, Order Number and Invoice. You seem to be using them interchangeably , and you probably
don't want to do that. "Kent Eilers" <ka*****@uswest .net> wrote in message news:yU******** *************@t wister.rdc-kc.rr.com... The following query changes when I save it: =============== =============== =============== =============== ====== SELECT AcctID FROM (SELECT [order number] as AcctID FROM tblOrderHeader
UNION
SELECT [AcctID] from tblExDoc
UNION SELECT [INVOICE] as AcctID FROM tblSalesInvoice Header )
When i save it and reopen it - it morphs into the following (note the
last line):
SELECT AcctID FROM [SELECT [order number] as AcctID FROM tblOrderHeader
UNION
SELECT [AcctID] from tblExDoc
UNION SELECT [INVOICE] as AcctID FROM tblSalesInvoice Header ]. AS [%$##@_Alias];
=============== =============== =============== =============== ====== Does Access2k not support Select statements in the FROM clause? Or is something else going on?
Thanks -- kent eilers ke**@kaeService s.com
"Kent Eilers" <ka*****@uswest .net> wrote in message
news:UI******** ************@tw ister.rdc-kc.rr.com... Thanks - the differences in field names are due to legacy issues with the project.
Sure thing.
Is it worth your time to fix those issues so it doesn't become _your_
legacy?
what i got to work - which didn't get munched by the Access query parser
is the following - note that this is access 97 syntax! It would appear that Access2k's query parser converted my ansi standard (with parenthesis's) to the bracket'ed version of access '97.
SELECT a.* FROM [SELECT [order number] as AcctID FROM tblOrderHeader
UNION
SELECT AcctID from tblExDoc
UNION
SELECT INVOICE as AcctID FROM tblSalesInvoice Header ]. AS a ORDER BY 1;
"DFS" <no******@nospa m.com> wrote in message news:vs******** ****@corp.super news.com... Kent,
You can change that last part [%$##@_Alias] to [anything you want] and
it won't affect the query results.
What you might be concerned with is your usage of AcctID, Order Number
and Invoice. You seem to be using them interchangeably , and you probably don't want to do that. "Kent Eilers" <ka*****@uswest .net> wrote in message news:yU******** *************@t wister.rdc-kc.rr.com... The following query changes when I save it: =============== =============== =============== =============== ====== SELECT AcctID FROM (SELECT [order number] as AcctID FROM tblOrderHeader
UNION
SELECT [AcctID] from tblExDoc
UNION SELECT [INVOICE] as AcctID FROM tblSalesInvoice Header )
When i save it and reopen it - it morphs into the following (note the last line):
SELECT AcctID FROM [SELECT [order number] as AcctID FROM tblOrderHeader
UNION
SELECT [AcctID] from tblExDoc
UNION SELECT [INVOICE] as AcctID FROM tblSalesInvoice Header ]. AS [%$##@_Alias];
=============== =============== =============== =============== ====== Does Access2k not support Select statements in the FROM clause? Or is something else going on?
Thanks -- kent eilers ke**@kaeService s.com
not what i'm getting paid for ))
"DFS" <no******@nospa m.com> wrote in message
news:vs******** ****@corp.super news.com... "Kent Eilers" <ka*****@uswest .net> wrote in message news:UI******** ************@tw ister.rdc-kc.rr.com... Thanks - the differences in field names are due to legacy issues with
the project.
Sure thing.
Is it worth your time to fix those issues so it doesn't become _your_ legacy? what i got to work - which didn't get munched by the Access query parser is the following - note that this is access 97 syntax! It would appear
that Access2k's query parser converted my ansi standard (with parenthesis's)
to the bracket'ed version of access '97.
SELECT a.* FROM [SELECT [order number] as AcctID FROM tblOrderHeader
UNION
SELECT AcctID from tblExDoc
UNION
SELECT INVOICE as AcctID FROM tblSalesInvoice Header ]. AS a ORDER BY 1;
"DFS" <no******@nospa m.com> wrote in message news:vs******** ****@corp.super news.com... Kent,
You can change that last part [%$##@_Alias] to [anything you want] and it won't affect the query results.
What you might be concerned with is your usage of AcctID, Order Number and Invoice. You seem to be using them interchangeably , and you probably don't want to do that. "Kent Eilers" <ka*****@uswest .net> wrote in message news:yU******** *************@t wister.rdc-kc.rr.com... > The following query changes when I save it: > =============== =============== =============== =============== ====== > SELECT > AcctID > FROM > (SELECT > [order number] as AcctID > FROM tblOrderHeader > > UNION > > SELECT > [AcctID] > from tblExDoc > > UNION SELECT > [INVOICE] as AcctID > FROM tblSalesInvoice Header > ) > > When i save it and reopen it - it morphs into the following (note
the last > line): > > SELECT AcctID > FROM [SELECT > [order number] as AcctID > FROM tblOrderHeader > > UNION > > SELECT > [AcctID] > from tblExDoc > > UNION SELECT > [INVOICE] as AcctID > FROM tblSalesInvoice Header > ]. AS [%$##@_Alias]; > > =============== =============== =============== =============== ====== > Does Access2k not support Select statements in the FROM clause? Or
is > something else going on? > > Thanks > -- > kent eilers > ke**@kaeService s.com > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Peter James |
last post by:
Access 97
If I select New on the Query tab of the db window, and go staight to sql
view and type in the following for example:
INSERT INTO tblMyTable ( dtDate, txtAny)
VALUES (#2003-09-03#, 'blah');
and then save the query, close it, and then reopen by clicking the design
button so it opens in sql view. The sql has changed to:
|
by: Mark B |
last post by:
We have an Access app (quite big) at www.orbisoft.com/download.
We have had requests by potential users to have it converted to an SQL
version for them since there corporate policy excludes them from buying mdb
backends.
Here's the (million dollar?) questions :)
How long and how difficult a process would it be?
Which SQL platform would we be best to develop it on?
|
by: Christopher Koh |
last post by:
how do you stop Access from saving any changed data in your tables and
queries?
like i just add or change data on the table/query tables,then click on
X (exit)because i have no intention of saving it but access still
automatically saves it even if I did not press the save command on the
menu/toolbar? What is the solution for this? help thanks!
|
by: Yannick Turgeon |
last post by:
Hello,
We are in the process of examining our current main application. We have to
do some major changes and, in the process, are questionning/validating the
use of MS Access as front-end. The application is relatively big: around 200
tables, 200 forms and sub-forms, 150 queries and 150 repports, 5GB of data
(SQL Server 2000), 40 users.
I'm wondering what are the disadvantages of using Access as front-end? Other
that it's not...
|
by: Jarrod |
last post by:
I have multiple reports in one database, on one form. I need to know
what reports were run when, and by Network User ID. How do I do that?
| |
by: royaltiger |
last post by:
I am trying to copy the inventory database in Building Access Applications
by John L Viescas but when i try to run the database i get an error in the
orders form when i click on the allocate button "Unexpected Error":3251
operation is not supported for this type of object.The demo cd has two
databases, one is called inventory and the other just has the tables for the
design called inventory data. When you run inventory the database works...
|
by: tt40 |
last post by:
Anyone know how to prevent Access 2002 from automatically breaking all
the incorrect joins in a query and then automatically saving the broken
query?
This is what I would call stupid design behaviour...Access takes your
'broken' query and auto saves it as what I call a 'corrupt' query...
1. Rename some BE tables and attributes
2. Open your FE
3. Open a query in design view that you know to now have broken names
|
by: Frav |
last post by:
The Reps team have been experiencing that Access 2002 unexpectedly
quits
while working and also lots of Corruption Failures and "Record lock
can not
update" messages since the upgrade from Windows 2000 and Access 200 to
Windows XP and Access 2002 (XP) was done.
Now, they are working and at anytime in anywhere of the application
access
unexpectedly quits with no error messages and the info that was being
entered
|
by: DFS |
last post by:
I have a job to automatically import Excel data and post to database tables,
via a point-click interface. Choose-file-and-it-does-the-rest kind of
thing.
Cient stores data in columns in his sheet (I told them it should be in rows,
but that's another issue). Sometimes the sheet gets new columns added. At
that point, Access/import spec won't recognize the new columns.
DoCmd.TransferText acImportDelim, "importSpec", "TABLE_NAME",...
|
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...
|
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,...
| |
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
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...
| |