Hi All,
I wonder if anyone can help. I've managed, with the the help of searching this site & Google, to set up 2 cascading combo boxes on a subform. The subform is now on my main form linked by customer id & is working.
The 1st combo box is called cboCategory, the 2nd is cboProducts and I've used some VB to write the choices made to text boxes bound to a table. This is for each customer. All works fine.
What I want to do is:
When the user makes the choices from each combo box, for each combo box to retain/display that value until the next time that combo box's value is changed for that customer.
Currently, both combo boxes default to blank each time the form is opened.
I've tried the following code in the OnLoad of the subform but it doesn't change the combo box value to what is in the table (no error messages):
Private Sub Form_Load()
Me.cboCategories.Column(1) = Me.txtCat
Me.cboProducts.Column(1) = Me.txtProduct
End Sub
Grateful for any pointers, thanks. Sue
I wonder if anyone can help. I've managed, with the the help of searching this site & Google, to set up 2 cascading combo boxes on a subform. The subform is now on my main form linked by customer id & is working.
The 1st combo box is called cboCategory, the 2nd is cboProducts and I've used some VB to write the choices made to text boxes bound to a table. This is for each customer. All works fine.
What I want to do is:
When the user makes the choices from each combo box, for each combo box to retain/display that value until the next time that combo box's value is changed for that customer.
Currently, both combo boxes default to blank each time the form is opened.
I've tried the following code in the OnLoad of the subform but it doesn't change the combo box value to what is in the table (no error messages):
Private Sub Form_Load()
Me.cboCategories.Column(1) = Me.txtCat
Me.cboProducts.Column(1) = Me.txtProduct
End Sub
Grateful for any pointers, thanks. Sue