473,504 Members | 13,830 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

bug in access query saves?

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 tblSalesInvoiceHeader
)

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 tblSalesInvoiceHeader
]. AS [%$##@_Alias];

================================================== ================
Does Access2k not support Select statements in the FROM clause? Or is
something else going on?

Thanks
--
kent eilers
ke**@kaeServices.com
Nov 12 '05 #1
4 1668
DFS
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*********************@twister.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 tblSalesInvoiceHeader
)

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 tblSalesInvoiceHeader
]. AS [%$##@_Alias];

================================================== ================
Does Access2k not support Select statements in the FROM clause? Or is
something else going on?

Thanks
--
kent eilers
ke**@kaeServices.com

Nov 12 '05 #2
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 tblSalesInvoiceHeader
]. AS a
ORDER BY 1;
"DFS" <no******@nospam.com> wrote in message
news:vs************@corp.supernews.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*********************@twister.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 tblSalesInvoiceHeader
)

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 tblSalesInvoiceHeader
]. AS [%$##@_Alias];

================================================== ================
Does Access2k not support Select statements in the FROM clause? Or is
something else going on?

Thanks
--
kent eilers
ke**@kaeServices.com


Nov 12 '05 #3
DFS

"Kent Eilers" <ka*****@uswest.net> wrote in message
news:UI********************@twister.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 tblSalesInvoiceHeader
]. AS a
ORDER BY 1;
"DFS" <no******@nospam.com> wrote in message
news:vs************@corp.supernews.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*********************@twister.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 tblSalesInvoiceHeader
)

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 tblSalesInvoiceHeader
]. AS [%$##@_Alias];

================================================== ================
Does Access2k not support Select statements in the FROM clause? Or is
something else going on?

Thanks
--
kent eilers
ke**@kaeServices.com



Nov 12 '05 #4
not what i'm getting paid for ))
"DFS" <no******@nospam.com> wrote in message
news:vs************@corp.supernews.com...

"Kent Eilers" <ka*****@uswest.net> wrote in message
news:UI********************@twister.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 tblSalesInvoiceHeader
]. AS a
ORDER BY 1;
"DFS" <no******@nospam.com> wrote in message
news:vs************@corp.supernews.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*********************@twister.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 tblSalesInvoiceHeader
> )
>
> 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 tblSalesInvoiceHeader
> ]. AS [%$##@_Alias];
>
> ================================================== ================
> Does Access2k not support Select statements in the FROM clause? Or

is > something else going on?
>
> Thanks
> --
> kent eilers
> ke**@kaeServices.com
>
>



Nov 12 '05 #5

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

Similar topics

13
4116
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#,...
29
3667
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...
3
12497
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...
49
14282
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...
6
4444
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?
13
3959
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...
4
3082
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...
2
6241
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...
25
2230
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...
0
7098
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
7298
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
7366
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...
1
7017
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
7471
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...
1
5026
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...
0
1526
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 ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
406
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...

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.