Apply Filter

J

Jose Perdigao

I would like to filter using docmd.ApplyFilter in a form typing part of the
text.
This criteria in a queries I use like "*parteofeNem*".

How can I use this criteria using code) (docmd.ApplyFilter, ...)

Thanks,
José Perdigão
 
G

Guest

You need to use Like and to include the field you're comparing, eg:

DoCmd.ApplyFilter , "[Surname] Like 'S*'"
 
J

Jose Perdigao

I tried before, it din't work. Now it works, I don't know what I did wrong,
but now it works fine,

Thanks,
jose perdigao

Martin said:
You need to use Like and to include the field you're comparing, eg:

DoCmd.ApplyFilter , "[Surname] Like 'S*'"


Jose Perdigao said:
I would like to filter using docmd.ApplyFilter in a form typing part of
the
text.
This criteria in a queries I use like "*parteofeNem*".

How can I use this criteria using code) (docmd.ApplyFilter, ...)

Thanks,
José Perdigão
 

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