In a function I trie to use a filter, but I am having problems with syntax (I think).
Function test(strLineCode as string) as string
dim rs as recordset, strfilter as string
set rs=currentdb.openrecordset("tblTest"
strfilter ='" & strLineCode & "'"
rs.Filter = strfilter
Unfortunately it gives back all records, so no filter applied.
Can someone give me a clue?
I need to use a filter because of speed reasons (need to open the same table several times)
Thanks,
Frans
Function test(strLineCode as string) as string
dim rs as recordset, strfilter as string
set rs=currentdb.openrecordset("tblTest"
strfilter ='" & strLineCode & "'"
rs.Filter = strfilter
Unfortunately it gives back all records, so no filter applied.
Can someone give me a clue?
I need to use a filter because of speed reasons (need to open the same table several times)
Thanks,
Frans