Just making sure we're on the same pg... I'd like to be able to enter
Quote:
directly into a row on a dropdown which pulls from either a query or
directly from a table. This query's dropdown is on the Switchboard (if
that matters). Phoney Ex. -
Row 1 || Name1 || Name2 || Name3
Row 2 || Descrips
Row 3 || Labels today || Labels yesterday 45 || More
Row 4 || Labels today || Labels yesterday 410
Query may narrow database records' view to 3 or 4 columns w/in the
dropdown list like above ex. (|| represents column end here), but maybe
the user wants to click into Row 3, so they can pick/go directly to
line of info. selected, either showing only that line, plus all it's
other columns (additional columns - same line in the database, but not
part of query), or go directly to that line, while allowing user to see
all database columns/rows (records), rather than having to scroll or
search for the line they wanted. It sounds like I may be asking
something diff. than what you answered?? Not sure. Please let me know.
THANKS!!!
Ify ou want to change the controlsource of your combobox on the fly,
you'd have to do it with code. I think that's what you mean, because
there's no other way to change the number of columns returned by a
query. (Well, unless you change the controlsource of the combobox to
some other query object or SQL statement. And then you'd have to
change the number of columns shown in the combobox control. but I'm
completely guessing what you're talking about. how about a REAL
example, because most of what you've said so far, at least from a pure
database standpoint, doesn't make much sense to me. Again, maybe I'm
missing the point, but so far nobody else has answered...
If all you _really_ want is to filter a form in the open event of the
form (as the subject says), so you see only all the records with a
field value in common, then that's a walk. All you have to do is
specify a filter (valid WHERE clause without the "WHERE") in the Open
event of the form.
But the way you are talking about varying numbers of columns in your
combobox, I'm not sure what you're really after. So how about giving a
real example?
Thanks,
Pieter