Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

filter subform by character (button)

Status
Not open for further replies.

pinstripe

Programmer
Dec 27, 2004
52
Hello,
i wuold like to filter subform by a character in specific field - in field [Item Type] have values "S","C" or empty
my code so far:
Code:
Me.[Equip-Stock Code from Work Orders subform1].Form.Filter = "[Item Type] = S"
Me.[Equip-Stock Code from Work Orders subform1].Form.FilterOn = True
But when i press the button it give's me a pop up screen where i need to write "S" -Ok .. and then it does the job
i would like just to press a button and VOILA!! ;)

can anyone help me please???
 
try delimiting the values
use 'S' instead of S
"[Item Type] = 'S'"

PaulF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top