search function

J

Jason

Hi,

I was wondering, what is the best way to create a form with a subform to
search for records.

Should i use an unbound textbox where people can type in what they looking
for and reference that textbox in the subform's datasource like an query.

Can someone help me on this?
 
P

Paul

Should i use an unbound textbox where people can type in what they looking
for
That is my preferred option. Personally I like to have an unbound text box
for each field shown in the subform, then the user can search by multiple
criteria. If perfomance allows I update the filter on the OnChange event of
the textboxes so the subform narrows down to the matching records while the
user types - this creates a nice feedback mechanism (saves the user from
typing a whole bunch of criteria and hitting 'Search' only to discover no
records are returned).
and reference that textbox in the subform's datasource like an query.
No - use the subform's filter property.
 

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