Select query not being saved

M

MikeR

In Access 2000, if I build the following SQL, it runs (from the query builder) and
gives the expected results.

When I save the query, Access deletes the ASC part.

How can I have it saved?

Thanks, Mike

SELECT [UCALL], [Mode]
FROM ModRef
ORDER BY [mode] DESC , [ucall] ASC;
 
M

MikeR

MikeR said:
In Access 2000, if I build the following SQL, it runs (from the query
builder) and gives the expected results.

When I save the query, Access deletes the ASC part.

How can I have it saved?

Thanks, Mike

SELECT [UCALL], [Mode]
FROM ModRef
ORDER BY [mode] DESC , [ucall] ASC;

Because ASC is the default?
 
J

John Spencer

That is the reason that Access removes it. I would like to see it retained if
it is entered, but that is very minor to the rest of what I would like Access
to allow in the SQL view.

WHINE WHINE WHINE
I would like to be able to comment my SQL in line
I would like Access to retain my formatting
I would like Access to get rid of the non-standard way it handles sub-queries
in the FROM clause
WHINE OFF

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County
MikeR said:
In Access 2000, if I build the following SQL, it runs (from the query
builder) and gives the expected results.

When I save the query, Access deletes the ASC part.

How can I have it saved?

Thanks, Mike

SELECT [UCALL], [Mode]
FROM ModRef
ORDER BY [mode] DESC , [ucall] ASC;

Because ASC is the default?
 
D

Daryl S

Mike -

Yes, ascending is the default for ORDER BY, so it is not necessary in the
statement.
--
Daryl S


MikeR said:
MikeR said:
In Access 2000, if I build the following SQL, it runs (from the query
builder) and gives the expected results.

When I save the query, Access deletes the ASC part.

How can I have it saved?

Thanks, Mike

SELECT [UCALL], [Mode]
FROM ModRef
ORDER BY [mode] DESC , [ucall] ASC;

Because ASC is the default?
.
 
M

MikeR

John said:
That is the reason that Access removes it. I would like to see it
retained if it is entered, but that is very minor to the rest of what I
would like Access to allow in the SQL view.

WHINE WHINE WHINE
I would like to be able to comment my SQL in line
I would like Access to retain my formatting
I would like Access to get rid of the non-standard way it handles
sub-queries in the FROM clause
WHINE OFF

And a mighty fine whine it is! ;->
 
M

MikeR

Daryl said:
Mike -

Yes, ascending is the default for ORDER BY, so it is not necessary in the
statement.

Thanks Daryl.

<rant on>
For documentation/clarity of intention purposes, it should be allowed. It's my query,
and if it is syntactically correct, Access should *NOT* change it.
<rant off>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top