To get you started in code then, before we hit the heavy stuff, have a look at the code produced by the wizard. In design mode, select the command button, click the events tab and where it says [event procedure] next to the On Click event, click the ... and copy that code and post it here so I can see how access is opening the document.