Hi,
I'm trying to change the content of a listbox in a subform when the selection in the combobox on the main form changes, here's the combobox after update event
Code:
Private Sub cmbMempSpecies_AfterUpdate()
DoCmd.SearchForRecord , "", acFirst, "[SpeciesID] = " & cmbMempSpecies
Forms![MempBercMainFrm2].[Form]![MempBercListBox].[Form]![lstbMempComplaints].RowSource = "SELECT " _
& "ComplaintID, SpeciesID, Complaint, Preparation, Administration, " _
& "ComplaintEdited, PreparationEdited, AdministrationEdited FROM MempComplaintTom " _
& "WHERE SpeciesID = " & [Me].[SpeciesID]
Forms![MempBercMainFrm2].[Form]![MempBercListBox].[Form]![lstbMempComplaints].Requery
End Sub
I get error 2465: Microsoft Access can't find the field '|1' referred to in your expression
Red text is highlited
Any ideas?
David