Hi Everyone
I have a form that displays the results of a query. I have a combo box to select and filter information on this form. All worked well in 2003 but 2007 goes awry. Initially I have 957 results displayed from the query and after the initial selection from the combo code is
Private Sub combooptDocumentCode_AfterUpdate()
DoCmd.ApplyFilter , "[DocumentCode]=Forms!frmPatientInformation!combooptDocumentCode"
EnableControls Me, acDetail, True
End Sub
the form redisplays the selected matching record and the filter marker on the ribbon shows filtered. If I reset the form to display all records I go back to my 957 starting position but if I make another combo selection the form just blanks and just the background is displayed.
I have attached some images to help
Any help would be greatly appreciated.
I have a form that displays the results of a query. I have a combo box to select and filter information on this form. All worked well in 2003 but 2007 goes awry. Initially I have 957 results displayed from the query and after the initial selection from the combo code is
Private Sub combooptDocumentCode_AfterUpdate()
DoCmd.ApplyFilter , "[DocumentCode]=Forms!frmPatientInformation!combooptDocumentCode"
EnableControls Me, acDetail, True
End Sub
the form redisplays the selected matching record and the filter marker on the ribbon shows filtered. If I reset the form to display all records I go back to my 957 starting position but if I make another combo selection the form just blanks and just the background is displayed.
I have attached some images to help
Any help would be greatly appreciated.