scubadiver007
Registered User.
- Local time
- Today, 02:13
- Joined
- Nov 30, 2010
- Messages
- 317
I have a recordclone combo box for navigating between 240 company records, so the form will go to the correct record on updating the combo.
Instead of clicking on the down button and scrolling through the list, I would like to enter letters into the box and update the record source automatically as I enter them.
I'm not sure what events to use since there appears to be very subtle differences between them (eg between 'on dirty', 'on change' and 'before update')
So when I type in 'T', only those companies that start with 'T' are viewed in the combo box.
I have discovered the VBA 'dropdown' command which would be useful for the user.
Table_Company
Company_ID: autonumber
Company_name: text
The name of the form is "form1" and the combo box name is "company".
The record source for the combo box is "query_company". In the form the ID field is hidden and the company name is not hidden.
The criteria I have for the combo would be something like this.
Any useful pointers?
Instead of clicking on the down button and scrolling through the list, I would like to enter letters into the box and update the record source automatically as I enter them.
I'm not sure what events to use since there appears to be very subtle differences between them (eg between 'on dirty', 'on change' and 'before update')
So when I type in 'T', only those companies that start with 'T' are viewed in the combo box.
I have discovered the VBA 'dropdown' command which would be useful for the user.
Code:
company.dropdown
Table_Company
Company_ID: autonumber
Company_name: text
The name of the form is "form1" and the combo box name is "company".
The record source for the combo box is "query_company". In the form the ID field is hidden and the company name is not hidden.
The criteria I have for the combo would be something like this.
Code:
SELECT Table_Company.Company_ID, Table_Company.Company_name
FROM Table_Company
WHERE (((Table_Company.Company_name) Like [forms!]![form1]![company] & "*"));
Any useful pointers?