|
rdouglass -> RE: Paging Long Island Lune, bobby, Spooky and rdouglas (10/31/2002 14:50:15)
|
Again, I haven' t tested with text so it' s either: <%DIM mySQL, stringTemp, arrayTemp mySQL = " " stringTemp = Request.Form(" EntryDate" ) arrayTemp = split(stringTemp," ," ) For i = 0 to (UBound(arrayTemp)-1) mySQL = mySQL & " EntryDate = ' " & trim(arrayTemp(i)) & " ' OR " NEXT mySQL = mySQL & " EntryDate = ' " & trim(arrayTemp(UBound(arrayTemp))) & " ' " %> OR <%DIM mySQL, stringTemp, arrayTemp mySQL = " " stringTemp = Request.Form(" EntryDate" ) arrayTemp = split(stringTemp," ," ) For i = 0 to (UBound(arrayTemp)-1) mySQL = mySQL & " EntryDate = " & trim(arrayTemp(i)) & " OR " NEXT mySQL = mySQL & " EntryDate = " & trim(arrayTemp(UBound(arrayTemp))) %> See, I' m just working with the delimiters:[:)] # delimits Dates ' delimits text (don' t use delimiters for numbers) See here for more delimiters
|
|
|
|