Drop-Down List Problem
We all know how drop-down lists work, right? You format a field to
show a drop-down roster of possibilities from a value list; if it's
long enuf, you get a scroll bar down the right edge. And there are 3
ways you can pick an item from the list:
(1) Click on it (after scrolling down, if necessary).
(2) Arrow down to it and hit "return".
(3) Type the initial letter of the desired option (more than once
if necessary) to land on it, and then hit "return".
Well, I've run across a situation where Technique #3 doesn't work,
and I was hoping someone on this list could tell me how to fix it.
I've got an "Addresses" database in which I break addresses down into
their component parts to a fare-thee-well, so as to enforce
formatting standards. In particular, I've got a field called "Road
Abb". The US Postal Service has over a hundred approved abbreviations
for types of roads, from "Aly.", "Arc.", and "Bch." thru "Vl.",
"Walk", and "Xing.". I've got a table of them, along with their
spelled-out versions.
Now, it's possible to create a value list called "Road Abbs" by
pointing it at the field "Road Abb" and saying, in effect, "Use
that!". The problem is that I end up with a really long list, and
it's in alphabetical order, so the most common items (like "St." and
"Rd.") are a long way down it. This makes data entry a nuisance.
In my community (Madison WI), the top 10 road types are, in order,
"St.", "Dr.", "Rd.", "Ave.", "Ln.", "Cir.", "Ct.", "Way", "Trl.", and
"Ter." They account for 95% of the road types in the city. Putting
them at the top of the list would make data entry lots easier.
So, in my "Roads" table, I numbered them 01 thru 10 (in a text
field), gave everything else the number 30, and came up with a
concatenated field ("Rank Full") based on the calculation:
Rank & " " & Name Full
Typical values for "Rank Full" are
01 Street
02 Drive
03 Road
30 Crossing
I now proceed to create my value list. I'm allowed to have values
from 2 different fields in the list. For my 1st value, I chose "Road
Abb". For my 2nd value I chose "Rank Full". I set the value list to
sort according to the 2nd value, "Rank Full".
Here's the odd bit. The list displays exactly as FileMaker says it
should, and Techniques #1 and #2 for picking items from it work
exactly as always. (That is, I can click on "Ave. 04 Avenue" and get
"Ave." entered in the field, or I can arrow down to it and get it
that way.) But Technique #3 fails. If I type, for example, "C",
expecting to go 1st to "Circle" and then to "Court", I go instead all
the way to the last entry on the list. Same if I type any other
letter. Typing a "1" takes me to "Ter. 10 Terrace", the 1st (actually
only) item on the list where "Rank Full" begins with a "1".
Ideally, I'd like to be able to SORT by "Rank Full" while DISPLAYING
"Name Full" as my 2nd field, but that doesn't seem to be an option.
Am I just SOL here?