I have a combobox (cmbType). After it updates I want the listbox (lstResolution) to show the any records that match the value in cmbType.
I have an AfterUpdate event for cmbType that looks like this:
Private Sub cmbType_AfterUpdate()
Dim strNewRecord As String
strNewRecord = "SELECT [Number], [Type], [Description], [Date] FROM tblResolution " _
& " WHERE [Type] = '" _
& Me![cmbType] & "'"
Me.RecordSource = strNewRecord
End Sub
Why won't the listbox show the records that match the SQL statement?
I have an AfterUpdate event for cmbType that looks like this:
Private Sub cmbType_AfterUpdate()
Dim strNewRecord As String
strNewRecord = "SELECT [Number], [Type], [Description], [Date] FROM tblResolution " _
& " WHERE [Type] = '" _
& Me![cmbType] & "'"
Me.RecordSource = strNewRecord
End Sub
Why won't the listbox show the records that match the SQL statement?