public servercount thisform.mygrid1.refresh() sele drs servercount=reccount() if servercount>nreccount #define ccicon "add.ico" with thisform.foxtray .iconsource = ccicon .icontip = "There are " + alltrim(str(servercount-nreccount)) + " unread documents in your list." .showicon endwith nreccount=servercount endifthe code after thisform.mygrid1.refresh() simply checks if a new record has been added in the database.