J
jpuckett
Ok guys, give me the answer here. I have a form that IS successfully
passing criteria to a parameter query. However, I have one combo box on the
form that is giving me problems due to the contents. The following are
examples of statements that are entered, in their entirety in the value
fields of the combo box:
Like "*rollover*" and not like "*frontal*"
Like "*rear*" and like "*impact*"
Like "*side*" or like "*lateral*"
Like "*reclined*"
Each of the statements above are literally entered, just as they are above,
in the value field of the combo box.
The reason I've attempted to do it this way is probably obvious. I couldn't
figure out how to do it another way and accomodate for the varied number of
search terms, etc.
Basically the query simply returns no records. Does it have to do with the
punctuation in the field? Is it just impossible to pass this type of
statement in this way?
I know it would work if I was simply passing the search terms themselves and
having the query criteria entry be Like
"*[Forms]![frmCriteriaForm]![cboAccType]*" but what do I have to do to be
able to pass these types of parameters easily on the fly or at least in a
combo box. I know I'm just not doing it correctly but I'm stumped as to the
right method.
TIA
passing criteria to a parameter query. However, I have one combo box on the
form that is giving me problems due to the contents. The following are
examples of statements that are entered, in their entirety in the value
fields of the combo box:
Like "*rollover*" and not like "*frontal*"
Like "*rear*" and like "*impact*"
Like "*side*" or like "*lateral*"
Like "*reclined*"
Each of the statements above are literally entered, just as they are above,
in the value field of the combo box.
The reason I've attempted to do it this way is probably obvious. I couldn't
figure out how to do it another way and accomodate for the varied number of
search terms, etc.
Basically the query simply returns no records. Does it have to do with the
punctuation in the field? Is it just impossible to pass this type of
statement in this way?
I know it would work if I was simply passing the search terms themselves and
having the query criteria entry be Like
"*[Forms]![frmCriteriaForm]![cboAccType]*" but what do I have to do to be
able to pass these types of parameters easily on the fly or at least in a
combo box. I know I'm just not doing it correctly but I'm stumped as to the
right method.
TIA