Filter error

  • Thread starter faapa via AccessMonster.com
  • Start date
F

faapa via AccessMonster.com

hi can someone help! pleease! i've created a filter for a date and a text box
that contains the phrase "no performance target" however i keep getting an
error saying 'data mismatch' 'syntax error' how can i fix this?


If Me.ch_exercised = -1 And Me.ch_pt = -1 Then
Let Me.Controls("frm_options_issued_list").Form.FILTER = "((DATE_EXERCISED =
Is Not Null))" And ((PT_NAME = "no performance target"))
Me.Controls("frm_options_issued_list").Form.FilterOn = True
 
J

Jeff L

Your syntax is a little off.

If Me.ch_exercised = -1 And Me.ch_pt = -1 Then
Me.FILTER = "DATE_EXERCISED Is Not Null And PT_NAME = 'no
performance target'"
Me.FilterOn = True
End If

Hope that helps!
 
F

faapa via AccessMonster.com

thanks jeff!

Jeff said:
Your syntax is a little off.

If Me.ch_exercised = -1 And Me.ch_pt = -1 Then
Me.FILTER = "DATE_EXERCISED Is Not Null And PT_NAME = 'no
performance target'"
Me.FilterOn = True
End If

Hope that helps!
hi can someone help! pleease! i've created a filter for a date and a text box
that contains the phrase "no performance target" however i keep getting an
[quoted text clipped - 8 lines]
Message posted via AccessMonster.com
 

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

Similar Threads

Double filter 2
DATE OPTION IN VBA CODE 0
Filter Parent Form by Subform's Listbox Selection 2
What's causing error 2465? 4
filter problem 3
Filter Text Syntax 2
Recortset syntax error 5
Forms and Subforms 6

Top