PC Review


Reply
Thread Tools Rate Thread

Advanced filter to sort on secondary column

 
 
=?Utf-8?B?Umlja0I=?=
Guest
Posts: n/a
 
      21st Apr 2006
In a joined form I have a field that is bound to the ID key in a realated
table, but which displays a secondary column instead of the ID. When I
create an advanced filter, it sorts by the ID column when I really want it to
sort by the second (displayed) column. Sort order is correct by the ID.

I've tried, but I can't figure a way to bring the second table into the
Advanced Filter window to try and relate it (though I'm not certain that this
is the right approach).

Any help on this would be greatly appreciated.

Rick
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      22nd Apr 2006
Can you create a query that contains both the form's table and the lookup
table, and use that query as the RecordSource of the form?

You can then specify the sorting in the query.

(There is an Access bug you could hit if the lookup table has a Default
Value on any of its fields. If it complains about not being able to save the
record at the instant you start adding records, it is (inappropriately)
trying to assign the default value to the lookup table's field.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"RickB" <(E-Mail Removed)(donotspam)> wrote in message
news:872AB9A0-F0FC-4336-ADBC-(E-Mail Removed)...
> In a joined form I have a field that is bound to the ID key in a realated
> table, but which displays a secondary column instead of the ID. When I
> create an advanced filter, it sorts by the ID column when I really want it
> to
> sort by the second (displayed) column. Sort order is correct by the ID.
>
> I've tried, but I can't figure a way to bring the second table into the
> Advanced Filter window to try and relate it (though I'm not certain that
> this
> is the right approach).
>
> Any help on this would be greatly appreciated.
>
> Rick



 
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
Problem with advanced filter sort window Julia B Microsoft Access VBA Modules 0 30th Nov 2009 12:19 PM
How prevent Advanced Filter Sort from self-clearing on Form? MHenry Microsoft Access Forms 0 30th Jun 2006 11:54 PM
Advanced filter/sort in MS access =?Utf-8?B?RGViIFRlY2g=?= Microsoft Access VBA Modules 2 4th Jun 2006 05:11 PM
Advanced Filter/Sort within VBA code =?Utf-8?B?UGF1bCBELiBTaW1vbg==?= Microsoft Access VBA Modules 1 19th Apr 2004 10:24 PM
Advanced Filter/Sort Question Jfs Microsoft Access 1 31st Dec 2003 01:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:23 AM.