Ok, it would probably be quicker if you added a field to the repeating group database called "Marked as read? yes/no and then make your conditions IF current field’s marked as read is yes then hide the button or change the background. With your current set up you have to search two databases instead of just the one.