L
learning_codes
Hi,
I am trying to put CHR(34) on the combo box but I did not get any
results. Here is the code that I try to set up. Can you help me if I
did the right thing or did I miss something?
strYear = "='" & Me.cboYear.Value & "'"
strlocation = "=' & Chr(34) & Me.cboLocation.Value & Chr(34)'"
strsport = "=' & Chr(34) & Me.cboSport.Value & Chr(34)'"
DoCmd.SetWarnings False
strFilter = "[Location] " & strLocation & " and [Sport] " &
strSport
I'm only having trouble running the report when I select the name of
the location that has single quoate and also the name of sport that
also has single quaote.
Your feedback would be much appreciated.
Thanks
I am trying to put CHR(34) on the combo box but I did not get any
results. Here is the code that I try to set up. Can you help me if I
did the right thing or did I miss something?
strYear = "='" & Me.cboYear.Value & "'"
strlocation = "=' & Chr(34) & Me.cboLocation.Value & Chr(34)'"
strsport = "=' & Chr(34) & Me.cboSport.Value & Chr(34)'"
DoCmd.SetWarnings False
strFilter = "[Location] " & strLocation & " and [Sport] " &
strSport
I'm only having trouble running the report when I select the name of
the location that has single quoate and also the name of sport that
also has single quaote.
Your feedback would be much appreciated.
Thanks