Hi
I have a form frmAdd_Equipmen t. It has a number of combo boxes on it, cboModel, cboSupplier, cboManufacturer , cboEquipment_Ty pe etc.
Bcause therer is no existing data to go off I put an ADD NEW cmdButton next to each of the ComboBoxes so if the item does not exist then the user can add a new Model, Supplier etc.
The various ComboBoxes all load from Queries when the Form Loads.
What I'd like to do, is to make it so that should the user click on cboModel, code behind the After Update event would somehow shuffle the data around in the other comboboxes..lik e Supplier, Manufacturer etc to make those ComboBoxes show the relevant data to the Model they originally selected with the cboModel. Then all the user would have to do is select the Department enter in the new Serial Number and Equipment number and click Save instead of having to trawl through and update each and every combo.
I wrote an strSQL string that creates a recordset based upon the Model selected and that works fine, but I cannot get the Columns of the combo boxes to change or update with values from the Recordset. (I guess because they have already been preloaded from the the initial queries during the Form Load event.
I guess I could place a text box next to each combobox, that would load if the user selected an already existing Model, but it would make an already busy form look really cluttered.
Thanks for any assistance
Mike
I have a form frmAdd_Equipmen t. It has a number of combo boxes on it, cboModel, cboSupplier, cboManufacturer , cboEquipment_Ty pe etc.
Bcause therer is no existing data to go off I put an ADD NEW cmdButton next to each of the ComboBoxes so if the item does not exist then the user can add a new Model, Supplier etc.
The various ComboBoxes all load from Queries when the Form Loads.
What I'd like to do, is to make it so that should the user click on cboModel, code behind the After Update event would somehow shuffle the data around in the other comboboxes..lik e Supplier, Manufacturer etc to make those ComboBoxes show the relevant data to the Model they originally selected with the cboModel. Then all the user would have to do is select the Department enter in the new Serial Number and Equipment number and click Save instead of having to trawl through and update each and every combo.
I wrote an strSQL string that creates a recordset based upon the Model selected and that works fine, but I cannot get the Columns of the combo boxes to change or update with values from the Recordset. (I guess because they have already been preloaded from the the initial queries during the Form Load event.
I guess I could place a text box next to each combobox, that would load if the user selected an already existing Model, but it would make an already busy form look really cluttered.
Thanks for any assistance
Mike
Comment