If you're not familiar with Access's button wizard, it's a good way to start. Just make sure the wizard icon is selected when you use the toolbar to add the button to the form. Choose Category: Miscellaneous, and Action:Run Query, and follow the rest of the prompts. If you want to call the underlying query, just substitute bitbrain's code for lines 3 thru 5. This way you get error handling added "for free".