Do you use a query or lookup button?
Typically I would use a rule on the button after the query, where query field account name in not blank and data field account name is(nothing found).
Then the action would be your message or an expression box
concat("What were you thinking entering ", ActName, "? That does not work!")