L
LyndsyJo
From a switchboard, users click a button (based on a macro, which is based on
a parameter query) to search for a keyword or item number in my database.
The results are displayed in a form. When their search yields no matches,
the result is just the blank form background.
I'm trying to modify the macro to provide the user with a Msgbox that will
say "No items match your search criteria". I know that I need to type
something in the Conditions of the macro, but that's where I'm stuck. The
best I can come up with, based on other questions in this discussion group, is
Forms![Apparel]![StyleNumber] <> [Search for apparel by style
number]![StyleNumber]
but I know that the 2nd part is invalid and causing an error message. The
first part is the form that displays the search results. The 2nd part is the
parameter query that the macro is based on. What am I doing wrong?
Please let me know if more information is needed. Be gentle if your answer
has to do with Visual Basic code, as I probably know more about nuclear
physics than I do about Visual Basic. Thanks in advance.
a parameter query) to search for a keyword or item number in my database.
The results are displayed in a form. When their search yields no matches,
the result is just the blank form background.
I'm trying to modify the macro to provide the user with a Msgbox that will
say "No items match your search criteria". I know that I need to type
something in the Conditions of the macro, but that's where I'm stuck. The
best I can come up with, based on other questions in this discussion group, is
Forms![Apparel]![StyleNumber] <> [Search for apparel by style
number]![StyleNumber]
but I know that the 2nd part is invalid and causing an error message. The
first part is the form that displays the search results. The 2nd part is the
parameter query that the macro is based on. What am I doing wrong?
Please let me know if more information is needed. Be gentle if your answer
has to do with Visual Basic code, as I probably know more about nuclear
physics than I do about Visual Basic. Thanks in advance.