G
Guest
Hello,
First, let me thank everyone who has contributed to these forums, you have
all helped me create a great database! Currently I'm at a standstill though.
I've searched the forums and tried to adapt the information provided in the
post "Use wildcard in combo box with multiple strings" however my query turns
up empty.
I'm trying to find a way to pass multiple strings from a textbox
(txtPartName) on my main form (frmCodeSearch) to my select query. The query
results are then displayed in a sub form. I'm able to enter a single string
that is either a full or partial word/phrase and use the criteria Like "*" &
[Forms]![frmCodeSearch]![txtPartName] & "*" for the field (PartName) from the
table tblParts. This allows me to enter "seat" in the text box and return
all records where the part name contains the word seat (i.e. seatbelt, seat
cushion, seat back, driver's seat, etc.).
Is there a way to enter multiple strings in the txtPartName textbox and pass
them all to the query? I would like to be able to enter "seat, driver" and
have the query return all records where the PartName field contains both
words. Thanks in advance to anyone who is able to shed some light on my
conundrum!
CCorreia
First, let me thank everyone who has contributed to these forums, you have
all helped me create a great database! Currently I'm at a standstill though.
I've searched the forums and tried to adapt the information provided in the
post "Use wildcard in combo box with multiple strings" however my query turns
up empty.
I'm trying to find a way to pass multiple strings from a textbox
(txtPartName) on my main form (frmCodeSearch) to my select query. The query
results are then displayed in a sub form. I'm able to enter a single string
that is either a full or partial word/phrase and use the criteria Like "*" &
[Forms]![frmCodeSearch]![txtPartName] & "*" for the field (PartName) from the
table tblParts. This allows me to enter "seat" in the text box and return
all records where the part name contains the word seat (i.e. seatbelt, seat
cushion, seat back, driver's seat, etc.).
Is there a way to enter multiple strings in the txtPartName textbox and pass
them all to the query? I would like to be able to enter "seat, driver" and
have the query return all records where the PartName field contains both
words. Thanks in advance to anyone who is able to shed some light on my
conundrum!
CCorreia