I want to do a search of all fields of db, how would you do that with dates?
Say if someone typed in a "12" I want it to search all the text fields and date fields then show all records that have it in the fields. "12" could day or month or even part of the year
Something like
strSQL = "SELECT textfield, datefield FROM mytable "_
& "WHERE textfield LIKE '%" & Replace(strSearch, "'", "''" & "%" _
'here's the problem I have no idea how to do this
& "OR "Cstr("datefield"" LIKE '%" & Replace(strSearch, "'", "''" & "%"
?????
Microsoft VBScript compilation (0x800A0400)
Expected statement
I would appreciate any help
Say if someone typed in a "12" I want it to search all the text fields and date fields then show all records that have it in the fields. "12" could day or month or even part of the year
Something like
strSQL = "SELECT textfield, datefield FROM mytable "_
& "WHERE textfield LIKE '%" & Replace(strSearch, "'", "''" & "%" _
'here's the problem I have no idea how to do this
& "OR "Cstr("datefield"" LIKE '%" & Replace(strSearch, "'", "''" & "%"
?????
Microsoft VBScript compilation (0x800A0400)
Expected statement
I would appreciate any help