There's probably another way to do this, but like June7, I don't know it! This is a step-by-step I've posted before for others in your same situation:
- In Form Design View, Right Click on your Original Combobox
- Click on Change To
- Click on Textbox
- Right Click on your Original Combobox/Now Textbox, again
- Click on Properties
- Click on Other
- Change the Name Property to ProductTextbox
- Now, create a New Combobox, setting its RowSource to your new Query that excludes inactive products
- Right Click on your New Combobox/[B]
- Click on Properties
- Click on Other
- Change the Name Property from the name Access gave it to NewProductCombo
- Leave this Control Unbound, i.e. leave the Control Source blank
Now place this code in the Form's Code Module:
Code:
Private Sub NewProductCombo_AfterUpdate()
Me.ProductTextbox = Me.NewProductCombo
End Sub
Private Sub Form_Current()
Me.NewProductCombo = Null
End Sub
Linq ;0)>