IF empty(thisform.pageframe1.page1.grid1.RecordSource="") MESSAGEBOX("There are no records in the grid to filter on!") RETURN ENDIF