May 31, 2005 #1 obheron Technical User May 25, 2005 40 US I keep getting a syntax error with this line of code. Any suggestions? DoCmd.ApplyFilter([FruitFilter],[Forms![Fruits]![Fruit]= "Apple")])
I keep getting a syntax error with this line of code. Any suggestions? DoCmd.ApplyFilter([FruitFilter],[Forms![Fruits]![Fruit]= "Apple")])
May 31, 2005 #2 PHV MIS Nov 8, 2002 53,708 FR I'd try this: DoCmd.ApplyFilter , "Fruit = 'Apple'" Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
I'd try this: DoCmd.ApplyFilter , "Fruit = 'Apple'" Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
May 31, 2005 Thread starter #3 obheron Technical User May 25, 2005 40 US Tried that line and no error. But also no filter. The filter event is the result of an option button being clicked. I am trying to apply the filter to a subform, in the form the option box is. Any suggestions? Upvote 0 Downvote
Tried that line and no error. But also no filter. The filter event is the result of an option button being clicked. I am trying to apply the filter to a subform, in the form the option box is. Any suggestions?
May 31, 2005 #4 PHV MIS Nov 8, 2002 53,708 FR Something like this ? With Me![subform control name].Form .Filter = "Fruit = 'Apple'" .FilterOn = True End With Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
Something like this ? With Me![subform control name].Form .Filter = "Fruit = 'Apple'" .FilterOn = True End With Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886