|
rdouglass -> RE: Desperate call for fp_sQry= help (7/27/2002 13:44:36)
|
Sorry [:o] Didn' t mean to insult anyone, but after you' ve played around with VBScript, it' s not that bad....[:p] Anyways, yes I do have 5 fields and 5 strings. Again, my code was just an example of one way to do it, not your specific solution. My point was basically to build your query OUTSIDE the DRW. In order to do that, you' ll have to look at each / every field and determine if it is to be included in the query or no (if it has something, include it - if not, ignore it). For instance, one of your sections could look something like: myQueryString = myQueryString & " AND (languagefrom LIKE ' %::languagefrom1::%' OR languagefrom LIKE ' %::languagefrom2::%' OR languagefrom LIKE ' %::languagefrom3::%' )" and the next one if needed would look similar but using language2: myQueryString = myQueryString & " AND (languageto LIKE ' %::languagefrom1::%' OR languageto LIKE ' %::languagefrom2::%' OR languageto LIKE ' %::languagefrom3::%' )" The way I see your problem is that one of the keys is: 1) to determine if there is something in the box, and 2) if so, add it to the query. Am I understanding your problem correctly??
|
|
|
|