I have a form that displays a letter history, basically the contents of a table, i would like to be able to search on various criteria, i am using the below code to search on letter_type but get a "No value given for one or more required parameters" error message.
Private Sub cmdLetterType_Click()
Dim LetterType As String
LetterType = InputBox("Enter the Letter Type:", vbOKCancel)
Adodc1.RecordSource = ("SELECT * FROM letter_history WHERE letter_type = " & LetterType)
Adodc1.Refresh
End Sub
Private Sub cmdLetterType_Click()
Dim LetterType As String
LetterType = InputBox("Enter the Letter Type:", vbOKCancel)
Adodc1.RecordSource = ("SELECT * FROM letter_history WHERE letter_type = " & LetterType)
Adodc1.Refresh
End Sub