add button to filter data on form

S

Smoki

Hi,
I have a form which shows most of the fields from my table (it's a form
which shows equipment in several places). But I want to add button (command
button) and when i click on it, I want to see equipment which I have in only
one place!
I put a command button Apply Form Filter, and in Form properties in Filter I
put: Location==49 (because 49 is Location_Id in Location table).
But it doesn't work. I have an error: The expression On Click you entered as
the event property setting produced the following error: Type mismatch!!!
Help???
 
D

Douglas J. Steele

What's the actual code you placed for the button's Click event? What's the
data type of Location_Id: is a Text field, or a numeric one?
 
S

Smoki

That was a problem, thanks. I had to check Location, and that is a text
field, and I always put in filter Location_Id, which is numeric field.
I solve it now, thank you!

Smoki
 

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