Toxalot said:
There must be a limit to the size of the string.
Perhaps, but it's not the combobox itself, I have data-bound combos with
15000 rows in them. So I'd guess the limit is the String itself, but I don't
really know the length limit for them.
The 5000 item list is a list of companies and used more as a way of
drilling down to a particular record.
So it's basically a filter?
then go to that record. I also need to be able to type into a text box
and have the list automatically scroll as I type (not sure if I'm
explaining that well enough.)
No, I know exactly what you mean, I had to do the same thing myself. Do a
search in this forum for "scrolling to a field in a continuous form".
This is my first big Access database with FE/BE that doesn't use
simple bound forms. I'm open to suggestions.
Ahh, good!
What I do, a lot, is use code to build an ADOBD recordset, and then use that
to put items into combos. If I understand your description correctly, the
data you need to put into the combo is in a database, but you can't get to it
"easily" because its in a separate one, the BE.
So try this: Get Properties on the control, set it to a table/query
datasource, and type in a query that is syntactically valid but returns no
rows... "SELECT * FROM someLocalTable WHERE 1=0".
Now add an OnOpen event handler to the form itself. In that handler do the
query you need to return the rows, and then set the RowSource of the combobox
to that query. For example...
MyCombo.RowSource = "SELECT notes FROM tblAccounts ORDER BY notes"
I use this technique mostly when the query has to change based on some other
input. That way I get tight control over the query, and don't have to rely on
Access getting the WHERE syntax correct.
Now to be honest, I've never tried this with two different data sources.
It's not clear to me that the combo won't simply assume the connection is the
default one, to the FE. But no harm in trying.
Maury