If someone solves this for me I'll be eternally grateful since it's the last problem in a long battle to get a piece of code running.
When I try to set the filter on a form through VBA it doesn't work. I get an error message saying I can't assign a value to this object. A message I've learned to hate.
The command I use is
form1.Filter = strSQL
where strSQL is a string which is a built up filter expression and form1 is the corresponding form.
I've also tried directly setting it with
form1.Filter = ("Course Source = 'External'"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
but this has no effect.
Can anyone shed any light? Please? it will finish off a annoying bit of coding!
Cheers,
Pete
When I try to set the filter on a form through VBA it doesn't work. I get an error message saying I can't assign a value to this object. A message I've learned to hate.
The command I use is
form1.Filter = strSQL
where strSQL is a string which is a built up filter expression and form1 is the corresponding form.
I've also tried directly setting it with
form1.Filter = ("Course Source = 'External'"
but this has no effect.
Can anyone shed any light? Please? it will finish off a annoying bit of coding!
Cheers,
Pete