you must be created a button using control toolbox. If that what happen,
yes you can add macro using codes suggested by Salina. But you can create
button using Forms (just customise your toolbar to include forms), this
will directly ask you to insert macro.