Modify msodsc.RecordsetDefs(0).ServerFilter to search for info in two fields

  • Thread starter cesemj via AccessMonster.com
  • Start date
C

cesemj via AccessMonster.com

<SCRIPT language=vbscript event=BeforeInitialBind(info) for=MSODSC>

Dim pTextSearch
Dim errNot_Found

errNot_Found = "NOT_FOUND"

pTextSearch = ReadVariable("SearchFor...")

'Good
msodsc.RecordsetDefs(0).ServerFilter = "repair_summary like " & chr(34) & chr
(37) & pTextSearch & chr(37) & chr(34)
'msodsc.RecordsetDefs(0).ServerFilter = "repairNO like " & chr(34) & chr(37)
& pTextSearch & chr(37) & chr(34)

' Delete the cookie.
document.cookie = ""
</SCRIPT>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top