So I have this button on a form called "Movie Query" that will open another form called "By Genre". By Genre is linked to a query that searches by genre. I have this query set up to ask the user to enter a genre to start the query by using an expression in the criteria part of the query [Enter Genre:]. The macro that is being used on the button is set "On Click" to open this second query/form, By Genre, then to close the current form, Movie Query. However, if the user clicks cancel when prompted for the genre entry, it will still close the Movie Query form. I would like it to cancel the closewindow macro if the user clicks on cancel.
I think I need an IF macro but I'm not sure how to use it. Can someone explain if that is what I need or is there something else I can do? If so, can you explain how to use the IF macro action.
Thanks.