Re: Challenging Sort Order for a returned recordset
- From: "Jeff Johnson" <i.get@xxxxxxxxxxx>
- Date: Fri, 14 Dec 2007 10:19:03 -0500
"Gary Bouchard" <GaryBouchard@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:11F4F1DD-94E2-4E9E-AAE5-ED76FB9A9778@xxxxxxxxxxxxxxxx
Sorry for the delay. The backend database can be SQL Server, MYSql or
Access.
I am using an Remote data control with the bound grid... connecting via a
DSN.
Actually I was manually adding the items from a resulting query, but your
previous message made me think of trying the remote data control and using
the grid bound.
Wait, you just said you WERE using a "bound grid" and now you say you're
adding items manually??? Which one?
Since I am using the remote data control, I am currently just passing
"select * from workstations" to populate the grid.
Now what I want ot do is discover the name of the current computer, and
make
sure that it is at the top of the grid.
I can go back to manual entry easily if that is what it takes.
If I were doing it manually I'd just filter the recordset to get the current
computer's data, add it to the grid, and then re-filter the recordset to
exclude the current computer and fill the rest of the grid.
Since you stated the back-end database could change, the UNION statement
Steve mentioned should be the most compatible. If it were only SQL Server,
I'd use a CASE statement to generate the sort key.
.
- Follow-Ups:
- Re: Challenging Sort Order for a returned recordset
- From: Gary Bouchard
- Re: Challenging Sort Order for a returned recordset
- References:
- Re: Challenging Sort Order for a returned recordset
- From: Jeff Johnson
- Re: Challenging Sort Order for a returned recordset
- Prev by Date: Re: Fastest way to get most common number in array = OT
- Next by Date: Re: How to convert Windows-based naming convention to DOS-based???
- Previous by thread: Re: Challenging Sort Order for a returned recordset
- Next by thread: Re: Challenging Sort Order for a returned recordset
- Index(es):
Relevant Pages
|