title: Run a VBA sub from command button in Access
body: <p>I'm having trouble attaching a VBA macro to a form button in MS Access. I have my public sub Demo defined in a Module1 under VBA. In Access, I ensured macros are enabled because I can click in the VBA window and run my macro by pressing F5.</p>
  
  <p>In Access, I created a new blank form (Ribbon > Create > Forms > Blank Form). On the form, I went into Design View. Then Ribbon > Design > Controls > Ensure "Use Control Wizards" is pressed.</p>
  
  <p>Then I pressed Button and dropped a new command button onto my form. In the Command Button Wizard, I clicked Miscellaneous under Categories, and then Run Macro under Actions, and pressed Next.</p>
  
  <p>I expected to see a list of modules or macros listed in the list on the following screen that prompts, "What macro would you like the command button to run?"</p>
  
  <p>Instead, the list is empty.  Where do I find the macro to add to the command button?</p>