Jaymin
Registered User.
- Local time
- Tomorrow, 03:06
- Joined
- Oct 24, 2011
- Messages
- 70
hope someone can help, I have a form with three cascading combo boxes and a subform, the third combo provides a bound field that joins it to the subform, i use this code on the "on change" event on the third combo box,
Private Sub cboPPE_Change()
Dim strFilter As String
strFilter = "IDPPE = " & Me.cboPPE
Forms!frmMain!subformMaint.Form.filter = strFilter
Forms!frmMain!subformMaint.Form.FilterOn = True
End Sub
I want the subform to be for entry of data only but when i select the data field from the combo box, the subform selects the filtered data for the combo box, can you advise how to change the above code so that the subform stays to additons only.
Peter
Private Sub cboPPE_Change()
Dim strFilter As String
strFilter = "IDPPE = " & Me.cboPPE
Forms!frmMain!subformMaint.Form.filter = strFilter
Forms!frmMain!subformMaint.Form.FilterOn = True
End Sub
I want the subform to be for entry of data only but when i select the data field from the combo box, the subform selects the filtered data for the combo box, can you advise how to change the above code so that the subform stays to additons only.
Peter