Hi
Hoping someone on here can help me out with my problem.
I have posted this on the excel page but I think it maybe more linked to access now.
I have two variants (arrays) in my coding
heading() ' linked to the headings
vRecord() ' link to the value of the cell\record
I am struggling with the filter at the moment. If i use hard code, like below, it filters the database based on the LastName of jones.
I have tried a few different styles of code
Fails with "Run time error '3001'"
and
fails with "syntax error"
any idea?
Thanks
Phil
Hoping someone on here can help me out with my problem.
I have posted this on the excel page but I think it maybe more linked to access now.
I have two variants (arrays) in my coding
heading() ' linked to the headings
vRecord() ' link to the value of the cell\record
I am struggling with the filter at the moment. If i use hard code, like below, it filters the database based on the LastName of jones.
Code:
recordset.Filter = "LastName = 'Jones' "
Code:
rs.Filter = "heading(1)='" & vRecord(0) & "'"
and
Code:
rs.Filter = 'heading(2)=vRecord(2)'
any idea?
Thanks
Phil