Filtering on a Form

K

Keith S

Using Access 2003, I have put a macro on the click field property of a field
on a form. The macro has the applyfilter command in it. In the where
option, I am prompting for data to search. For instance, if a user clicks on
the PO field, it prompts them for a PO number. If the filter finds the
prompted PO number, it brings the record back to the screen. However, if the
filter does not find a record for the prompted data, it brings back a blank
screen. The blank screen only has the Form Name in a label field, but
nothing else. How can I get it to bring back a record, preferably the
previous record if the prompted filter does not find a record?

Thanks for any assistance.
 

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