Hi PaulThis is the code i have used:if (iVar==0){Page.Subform.presence ="visible"}else {Page.Subform.presence ="hidden"}This works fine if it is the only click event, however if there is a code prior to this where you have two conditions (0,1) then it does not seem to work. I know the code before it...