Im not sure if this a forms question or a macro question but I will ask it here. I currently run macros to open a form and close the previous form that has been open. Thr ptoblem is the previous form is not always open so that when the macro runs and the previous form is not open The user gets an error message. I'm guessing I have to use code instead of a macro-perhaps an IF statement . IF form open close it else go to end but dont know exact syntax. Can someone help me?