Link to home
Start Free TrialLog in
Avatar of J G
J G

asked on

message box if no filter results

I have a unbound search text box on a form that has a table record source.  I also have a button that will execute a filter with the following macro builder code:

[PLU] Like "*" & Forms![Item_Master]!SearchFeild & "*"



I want to display a message box if no filter results are found.  How can I do this?
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of J G
J G

ASKER

If I select the bottom row (empty row that has an * in the first field) in the lower half of the split form, the form clears and the filter and messagebox functions correctly .  If any other record is selected on the bottom of the form a  message box pops up for everything.

 Is there any way to add some vba code that will select the bottom empty row and clear the form everytime someone hits the button to execute the filter?
Avatar of J G

ASKER

Figured it out! go to new record