PC Review


Reply
Thread Tools Rate Thread

datasheet: ¿how to order by the 2nd column of a combobox?

 
 
robeito
Guest
Posts: n/a
 
      4th May 2010
hello there!

In my form there is a field "idCountry", but I don't want to see the number,
instead, I want to show the country name, so I changed the control to a
combobox and the rowsource is "select id,cname from countryCat"... etc. etc.

It works fine, but there is a problem, when I try to sort the data sheet by
that field (using the right click button of the mouse), actually it is sorted
by the "ID" of the country instead of its name.

I want to see the datasheet sorted by the real names of the countries, not
by its IDs

any sugestions?



Actually the data grid shows the information as I spected, but, when I use
the standar right click action of the mouse on the grid (sort A->Z, sort
Z->A, cut, copy paste, filter,...) and use the sort option, the grid is
sorted by the countries ID and that's not what I want, I want the grid sorted
by the alphanumeric name of the country



thanks in advance
 
Reply With Quote
 
 
 
 
golfinray
Guest
Posts: n/a
 
      5th May 2010
Open up the query that drives the rowsource and change the sort there.
--
Milton Purdy
ACCESS
State of Arkansas


"robeito" wrote:

> hello there!
>
> In my form there is a field "idCountry", but I don't want to see the number,
> instead, I want to show the country name, so I changed the control to a
> combobox and the rowsource is "select id,cname from countryCat"... etc. etc.
>
> It works fine, but there is a problem, when I try to sort the data sheet by
> that field (using the right click button of the mouse), actually it is sorted
> by the "ID" of the country instead of its name.
>
> I want to see the datasheet sorted by the real names of the countries, not
> by its IDs
>
> any sugestions?
>
>
>
> Actually the data grid shows the information as I spected, but, when I use
> the standar right click action of the mouse on the grid (sort A->Z, sort
> Z->A, cut, copy paste, filter,...) and use the sort option, the grid is
> sorted by the countries ID and that's not what I want, I want the grid sorted
> by the alphanumeric name of the country
>
>
>
> thanks in advance

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
datasheet: ¿how to order by the 2nd column of a combobox? robeito Microsoft Access Forms 4 5th May 2010 05:08 PM
Order of columns in datasheet after adding new column =?Utf-8?B?bXNjZXJ0aWZpZWQ=?= Microsoft Access Forms 1 11th May 2007 07:49 PM
Form in Datasheet View - Column Order Simon Harris Microsoft Access 3 27th Jun 2006 09:20 PM
Column order in Datasheet view andrei Microsoft Access 2 30th Nov 2004 10:16 PM
Design & SQL Column Order not same as Datasheet David McCulloch Microsoft Access Queries 7 23rd Sep 2003 05:00 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:15 PM.