Filter properties

G

Gaetan

Hello,

I would like to display in a text box the name of the field that is being
filtered and the filter criteria that is being applied. I know this
information is available in the Filter property of the form but the way it
shows (ex.: ((Lookup_cboJobTypeID.Type="Full-Time"))), it needs a complicated
use of the InStr and Left funtions to get to the information.

I was wondering if there was a simpler way to display the information so
that the user knows what Filter is applied to the data he sees.

Thanks in advance!
 
D

Douglas J. Steele

What exactly would you want to display from the sample filter you gave? Just
Lookup_cboJobTypeID.Type="Full-Time"?

=Replace(Replace(Me.Filter, ")", ""), "(", "")
 
G

Gaetan

It's only a workaround of my solution. Like using the InStr and Mid
functions, it won't work with Filter By Form and will not display the proper
filter when the filter is applied by Filter Excluding Selection.

Any other ideas from anyone?

Thanks!
 

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