M
malgoro
I hate to bother for something that must be very simple, but I give up...I
need help:
I have a Parameter Query; the parameter is selected from a list box (list80)
on a form. The options on the list box are "ch", "wr" and "combined", where
"combined" should bring the combination of both "ch" and "wr".
This is my code, but it doesn't work when it comes to the "combined" option:
Private Sub List80_Change()
Dim strch As String
Dim strwr As String
strch = "ch"
strwr = "wr"
If List80.Value = "Combined" Then
List80.Value = "'" & strch & "'" & " or " & "'" & strwr & "'"
End If
End Sub
the characters are:
doublequotes_singlequote_doublequotes_space_ampersand_space_strch.... ...
....doublequotes_singlequote_doublequotes_space_ampersand_space_strwr_space_ampersand_space_doublequotes_singlequotes_doublequotes
After this, of course I click on a button that generates the report that's
based on the parameter query, but as I said, it doesn't show anything when it
comes to the combined option.
Thank you!
need help:
I have a Parameter Query; the parameter is selected from a list box (list80)
on a form. The options on the list box are "ch", "wr" and "combined", where
"combined" should bring the combination of both "ch" and "wr".
This is my code, but it doesn't work when it comes to the "combined" option:
Private Sub List80_Change()
Dim strch As String
Dim strwr As String
strch = "ch"
strwr = "wr"
If List80.Value = "Combined" Then
List80.Value = "'" & strch & "'" & " or " & "'" & strwr & "'"
End If
End Sub
the characters are:
doublequotes_singlequote_doublequotes_space_ampersand_space_strch.... ...
....doublequotes_singlequote_doublequotes_space_ampersand_space_strwr_space_ampersand_space_doublequotes_singlequotes_doublequotes
After this, of course I click on a button that generates the report that's
based on the parameter query, but as I said, it doesn't show anything when it
comes to the combined option.
Thank you!