How do I hide a button that selects a bookmark if that selection would return 0 results?
I have three buttons, each of which activates a bookmark.
Each bookmark is for monitoring purposes - they highlight certain records that require investigation by a user.
Sometimes though, there will be no records for the user to check, so I don't want the relevant button to be visible. If there are no matching results I don't want to waste the user's time clicking on buttons that give them nothing.
How would I hide the button?
EDIT: If this is not possible, as an alternative, how would I return the number of matching rows?