Article View: comp.lang.pascal.delphi.databases
Article #116Re: Sorting Queries
From: Khari Villela
Date: Tue, 23 Feb 1999 00:00
Date: Tue, 23 Feb 1999 00:00
24 lines
1523 bytes
1523 bytes
TQuery's cannot be sorted in Delphi your only options are to 1. re-run the query using different order by statements 2. Copy the data to a client dataSet and do indexing on it (easier, but requres C/S) Stuart Cox wrote: > Hi, > > I originally access my DB using a simple TTable but I now need to select a > set of records. I have tried using StartRange and EndRange BUT I want all > records whose > > Field1 > Something and whose > Field2 < SomethingElse > > It appears Ranges cannot handle this so off I go to TQuery. I can build the > exact SQL Query I need quite easily but I also need to sort the records on > various fields (depending on user decisions). Now, TTable has an IndexName > which I can change depending on how I want to sort the data BUT TQuery has > no equivalent. Any help would be much appreciated. > > Stuart Cox
Technical Details
Message-ID:
<36D30091.DB55AB0D@nospam.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7aeaob$qj3$1@lux.doc.ic.ac.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ffff5,7a456c793e1fa17b X-Google-Attributes: gidffff5,public X-Google-Thread: 10de66,7a456c793e1fa17b X-Google-Attributes: gid10de66,public From: Khari Villela <kvillela@nospam.com> Subject: Re: Sorting Queries Date: 1999/02/23 Message-ID: <36D30091.DB55AB0D@nospam.com> X-Deja-AN: 447591426 Content-Transfer-Encoding: 7bit References: <7aeaob$qj3$1@lux.doc.ic.ac.uk> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii MIME-Version: 1.0 NNTP-Posting-Date: Tue, 23 Feb 1999 14:25:10 EDT Newsgroups: comp.lang.pascal.delphi.databases,borland.public.delphi.database.sqlservers