Y
Yarik
After using MS Access 2003 (ADP project) for quite a while, I've just
realized that I don't know how to implement something that appears to
be a very common requirement...
Let's say there are two tables, Customers and Orders. Each customer
has an ID and a Name. Each order refers to the customer using
CustomerID column. I have a continuous form to view/edit orders.
Instead of showing customer IDs, the form uses a combo box that has a
visible column showing customer names and a hidden column bound to
CutomerID column in Orders table.
Now, the problem is: When a user sets input focus to the combo box and
invokes Access' built-in sorting function, the orders are sorted by
customer IDs, whereas it is obviously desired for them to be sorted by
customer names. The question is: is there any practical way to make
the form work as desired (preferrably without giving up the
convenience of having the combo box)?
realized that I don't know how to implement something that appears to
be a very common requirement...
Let's say there are two tables, Customers and Orders. Each customer
has an ID and a Name. Each order refers to the customer using
CustomerID column. I have a continuous form to view/edit orders.
Instead of showing customer IDs, the form uses a combo box that has a
visible column showing customer names and a hidden column bound to
CutomerID column in Orders table.
Now, the problem is: When a user sets input focus to the combo box and
invokes Access' built-in sorting function, the orders are sorted by
customer IDs, whereas it is obviously desired for them to be sorted by
customer names. The question is: is there any practical way to make
the form work as desired (preferrably without giving up the
convenience of having the combo box)?