Hello, I need some help. I made a form with a combo box that filters a sub form based on the value selected in the conbobox. But I also would like to be able to see them all if I leave it blank.
below is the code I used. can anyone tell me what i need to add or change to be able to see them all?
Private Sub cboScholarshipType_AfterUpdate()
Dim myApplicant As String
myApplicant = "Select * from tbl_Applicants where ([Scholarships] = " & Me.cboScholarshipType & ")"
Me.tbl_Applicants_subform.Form.RecordSource = myApplicant
Me.tbl_Applicants_subform.Form.Requery
End Sub