Thanks for that. It works far better now.

The only issue that remains is that if there are no entries made, the warning message comes up as intended, but after clicking OK, it still refreshes the query with all records. What do I need to add to ensure it does not refresh the query if no entries are made in A2:E2 and OK is pressed upon the message popping up?