I currently have a 2003 MS Access database that has a Form where the recordset is based on a Table. There is also a Combobox on this Form that has the control-source of one of the fields in the bound Table. The recordset is the result of a query that pulls all the available 'services' from another table, with the ID of the selected 'service' being stored in the form bound table. The Combobox has three columns with columnwidth defined as 0cm,1cm,1cm with column 1 being the bound (ID) column.
this allows me to select from the drop down list a 'service' and also type it in, with the ID of the service being stored in the table. Naturally this form can have many rows in it that are tied to the rows in the table.
This works fine and is great. However there is now a requirement for the values in this drop down to be based on another field. So instead of having one set of 'services' there can be several sets of 'services' in the drop down that will appear based on another combobox.
I've managed to get it to work by modifying the recordset query for this service drop down to take into account the other field and then on the onenter() event of the service list combo box, requery itself (servicelist.requery()) however there is a snag where if i've got five rows in the form, each service list will be based on the current rows other field, not its respective one, causing the combo box to be blanked out. this doesn't affect the underlying table however it's quite annoying.
Any suggestions?
I've tried setting the "limit to list" property to "No" however this can not be done when the first field (which is the bound field) in the combobox has a width of 0CM. when i set it to not equal to 0CM then the display value for this combobox becomes the ID field, which is not what i want.