Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. How to call VBA function on command event in access 2007?

How to call VBA function on command event in access 2007?

Scheduled Pinned Locked Moved Database
helptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    monika_vasvani
    wrote on last edited by
    #1

    Hi All I am new with VBA in access. I have two buttons on access form.when i click on 1 button,my vba code has to run. how to do that? pls help me. Thanks

    R 1 Reply Last reply
    0
    • M monika_vasvani

      Hi All I am new with VBA in access. I have two buttons on access form.when i click on 1 button,my vba code has to run. how to do that? pls help me. Thanks

      R Offline
      R Offline
      riced
      wrote on last edited by
      #2

      Open the form in design view, double click on the button. That should put you in a code window in the buttonX_Click event (where buttonX is the name of your button). Now add a call to your code (or place your code here if its not in a sub/function. Buy a book on Access programming if you intend to do any more - this is something that is one of the first steps in Access programming.

      Regards David R --------------------------------------------------------------- "Every program eventually becomes rococo, and then rubble." - Alan Perlis

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups