I am using filter to create a contact card system. The database holds all records and then a filter gets the records for the relevant tab ie ABC -
FilterParam = Recordset_all.Fields.Item("lnk_name").Value
Recordset_all.Filter = "lnk_name LIKE 'A*' OR lnk_name LIKE 'B*' OR lnk_name LIKE 'C*'"
For my last card I want to show all records that dont start with a letter. In SQL I would put -
"SELECT * FROM t_links WHERE LEFT(lnk_name,1)NOT IN ('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y' ,'Z')"
How can I do the same in vbscript - I dont want to have to put the 'lnk_name LIKE' code 26 times!!
Monkey
FilterParam = Recordset_all.Fields.Item("lnk_name").Value
Recordset_all.Filter = "lnk_name LIKE 'A*' OR lnk_name LIKE 'B*' OR lnk_name LIKE 'C*'"
For my last card I want to show all records that dont start with a letter. In SQL I would put -
"SELECT * FROM t_links WHERE LEFT(lnk_name,1)NOT IN ('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y' ,'Z')"
How can I do the same in vbscript - I dont want to have to put the 'lnk_name LIKE' code 26 times!!
Monkey
Comment