In a moment of madness, I put a close command before the open form command. Now it just closes the database as soon as I try to open it. Is there a way round the autoexec function? Thanks in anticipation