D
David H
If you were building a form implementing QueryByForm and could only provide a
single textbox to capture the input, how would you parse out the following
string ["John Smith" Peter ] so that the resultant WHERE statement could
becreated WHERE (NameFirst = "Peter") OR (NameFirst ="John" AND NAMELAST =
"Smith")?
Right now I've effectively implemented single value searches such as [John
Smith Peter] where all names with John, Smith or Peter in the first or last
name are returned. But, I would like to provide my users with a Google type
of search that considers "John Smith" as an exact match.
I'm already using the Split() function to break the string apart, but I
can't figure out how to detect and retrieve a value entered in quotes - other
than looping through the string checking each individual character's ASCII
code.
single textbox to capture the input, how would you parse out the following
string ["John Smith" Peter ] so that the resultant WHERE statement could
becreated WHERE (NameFirst = "Peter") OR (NameFirst ="John" AND NAMELAST =
"Smith")?
Right now I've effectively implemented single value searches such as [John
Smith Peter] where all names with John, Smith or Peter in the first or last
name are returned. But, I would like to provide my users with a Google type
of search that considers "John Smith" as an exact match.
I'm already using the Split() function to break the string apart, but I
can't figure out how to detect and retrieve a value entered in quotes - other
than looping through the string checking each individual character's ASCII
code.