ok Bob, I usually do just that when I am putting in a code behind a field
On pervious versions of access, to put a command button on a form you would click on the command button and put it on the form and a wizard would come up and ask how you want this command button to work, simple
on 2010 version I could not find the wizard, had to ask BUT when I use it now, it makes a macro instead of code. (dont know jack about macros)