tfurnivall
Registered User.
- Local time
- Today, 03:48
- Joined
- Apr 19, 2012
- Messages
- 81
OK - I'm past the problem from earlier. If I change the underlying table design I can now make the fields visible and available to the form. Here's the next issue (and I suspect it'll be a doozy).
I'm using several fields as look-up paths into the database. Among these are Publisher, Label, LabelNumber. What I want to be able to do (and I've done it in Excel with a much smaller dataset) is to begin typing in a field (say, PublisherName), and have each keystroke present a refined list of possibilities from which I may select (or which may represent a new Publisher). (Think Google's search interface, for example)
So - I'm using a combo box, and trying to populate that combo box using a select statement on each keystroke (via the OnChange event).
I modelled the SQL to do this using a 'bound' combo box control and a fixed query to load it, but obviously this won't do for the situation I describe. However, when I extend the SQL with a WHERE clause, all sorts of nasty things happen:
Access puts up a totally spurious textbox where I can put in my search value; NO I want to use my combo box textfield.
Access complains that I have the wrong datatype (I get as far as "c" of "Columbia") rather than a Long (representing the underlying PublisherID - an autonumber unique key value.
The whole point of unbinding the control is to avoid getting locked in to the sequential navigation model which really seems to be all that Access supports.
Core of the question, then, is:
How can I use a changing value in the text field of a combo box to load the list part of the combo box with a set of matching values based on a Select..Where statement.
Thanks in advance!
Tony
I'm using several fields as look-up paths into the database. Among these are Publisher, Label, LabelNumber. What I want to be able to do (and I've done it in Excel with a much smaller dataset) is to begin typing in a field (say, PublisherName), and have each keystroke present a refined list of possibilities from which I may select (or which may represent a new Publisher). (Think Google's search interface, for example)
So - I'm using a combo box, and trying to populate that combo box using a select statement on each keystroke (via the OnChange event).
I modelled the SQL to do this using a 'bound' combo box control and a fixed query to load it, but obviously this won't do for the situation I describe. However, when I extend the SQL with a WHERE clause, all sorts of nasty things happen:
Access puts up a totally spurious textbox where I can put in my search value; NO I want to use my combo box textfield.
Access complains that I have the wrong datatype (I get as far as "c" of "Columbia") rather than a Long (representing the underlying PublisherID - an autonumber unique key value.
The whole point of unbinding the control is to avoid getting locked in to the sequential navigation model which really seems to be all that Access supports.
Core of the question, then, is:
How can I use a changing value in the text field of a combo box to load the list part of the combo box with a set of matching values based on a Select..Where statement.
Thanks in advance!
Tony