Quote:
|
quote:Put the code on the frame Before Update event.
|
I thought it was in the before update event...
Private Sub Frm_InvUpd_Category_BeforeUpdate(Cancel As Integer)
would the select statement look like this?
Select case Frm_InvUpd_Category.Value
Case 1
Me.Frm_InvUpd_Category.Value = 1 Then
Me.Cmb_InvUpd_Prod.RowSource = "SELECT Product.Product_Name" & _
"FROM Product" & _
"WHERE (((Product.Product_Category) = 'Long Range'))" & _
"ORDER BY Product.Product_Name;"
Case 2
Me.Frm_InvUpd_Category.Value = 2 Then
Me.Cmb_InvUpd_Prod.RowSource = "SELECT Product.Product_Name" & _
"FROM Product" & _
"WHERE (((Product.Product_Category) = 'Mid Range'))" & _
"ORDER BY Product.Product_Name;"
Case 3
bla bla bla
Case 4
etc etc etc
End Select