docmd.setwarning false 'I do this so that it won't remind me I am about to append records
docmd.openquery "YourQueryName"
[b]Another_Control.SetFocus[/b]
button1.enable = False 'this will disable your button.
docmd.setwarnings true 'turn warnings back on