If I understand correctly, the easiest method is to open a form in design
view, make sure the tool box wizard is on, drop a command button on the form
and use the wizard to write the code for you. You can copy and paste the
code if you like.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.