I have a form that you normally open and then use a combobox to get the selected customer which then shows jobs in a subform.
You can also open the job first and then hit a button to open the first form to see all the jobs by the customer. Code used is:
stLinkCriteria = “[AccNo]=” & “‘” & Me![cboAccNo] & “‘” DoCmd.OpenForm stDocName, , , stLinkCriteria
but my users often get caught by thinking that the form is open normally and then use the combobox to try and select a new customer. The name changes but the records shown in the subform don’t. The combo code is:
Me.RecordsetClone.FindFirst “[AccNo] = ‘” & Me![Combo22] & “‘” Me.Bookmark = Me.RecordsetClone.Bookmark ‘Combo1.Value = “” If [AcconHold] = True Then Label47.visible = True Else: Label47.visible = False End If Me.Original_subform2!Toggle41.Value = False Me.Original_subform2.Form.RecordSource = “qryCustomerSublist” Me.Original_subform2.Requery Me.Original_subform2.SetFocus
What I want is code so that if the form has been opened filtered, that using the combobox will remove the filter and correctly show the jobs.
Please