Welcome to Windows Help!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Select query not being saved

 
   Windows Help (Home) -> Microsoft Access RSS
Next:  Subform causing duplicate records?  
Author Message
MikeR

External


Since: Sep 4, 2008
Posts: 4



(Msg. 1) Posted: Mon Jan 25, 2010 9:54 pm
Post subject: Select query not being saved
Archived from groups: microsoft>public>access (more info?)

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;

 >> Stay informed about: Select query not being saved 
Back to top
Login to vote
MikeR

External


Since: Sep 4, 2008
Posts: 4



(Msg. 2) Posted: Mon Jan 25, 2010 9:58 pm
Post subject: Re: Select query not being saved
Archived from groups: per prev. post (more info?)

MikeR wrote:
> 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?

 >> Stay informed about: Select query not being saved 
Back to top
Login to vote
Daryl S

External


Since: Oct 19, 2009
Posts: 13



(Msg. 3) Posted: Tue Jan 26, 2010 6:38 am
Post subject: Re: Select query not being saved
Archived from groups: per prev. post (more info?)

Mike -

Yes, ascending is the default for ORDER BY, so it is not necessary in the
statement.
 >> Stay informed about: Select query not being saved 
Back to top
Login to vote
John Spencer

External


Since: Dec 8, 2008
Posts: 16



(Msg. 4) Posted: Tue Jan 26, 2010 9:14 am
Post subject: Re: Select query not being saved
Archived from groups: per prev. post (more info?)

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 wrote:
> MikeR wrote:
>> 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?
 >> Stay informed about: Select query not being saved 
Back to top
Login to vote
MikeR

External


Since: Sep 4, 2008
Posts: 4



(Msg. 5) Posted: Wed Jan 27, 2010 6:48 am
Post subject: Re: Select query not being saved
Archived from groups: per prev. post (more info?)

John Spencer wrote:
> 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! ;->
 >> Stay informed about: Select query not being saved 
Back to top
Login to vote
MikeR

External


Since: Sep 4, 2008
Posts: 4



(Msg. 6) Posted: Wed Jan 27, 2010 6:53 am
Post subject: Re: Select query not being saved
Archived from groups: per prev. post (more info?)

Daryl S wrote:
> 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>
 >> Stay informed about: Select query not being saved 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Error running SELECT INTO query - Hi When I run the below query I get the error 'Table _Temp already exists'. How can I get past this such that _Temp table gets overwritten if it already exists? Thanks Regards SELECT INTO _Temp FROM MyTbl WHERE ....

Can not change data once i bases a query on a query - I have a despatch System that shows a customers orders with the products to be despatched Its on a Contious form based on a query. On the form i also want to show the Quantity that need to be despatched as the order might be despated in parts Th I hav...

select multiple items combo box - Hi all, I am having some trouble. I am creating a form that where for certain categories the user needs to be able to choose multiple items. I originally tried using a list box but after reading some of the posts here, I decided to try using subform...

HELP When select VBA Editor Access shuts down! - This morning, when I clicked on the VBA Editor to bring up my procedures and modules, I got a "Microsoft Office Access has encountered a problem and needs to close..." My tables, reports and forms all open OK. I tried compacting/repairing....

Dialog box that lets the user select the location of a fil.. - I am looking for the code that I can enter on a command button to bring up a windows dialog box. This box is supposed have the user link to a location of a .pdf file. The location would be stored in a data field named txtlocation which will connect to...
   Windows Help (Home) -> Microsoft Access All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]