Results 1 to 3 of 3
  1. #1
    sgkim151 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    May 2016
    Location
    Incheon, Korea
    Posts
    6

    How do you run a query by clicking on a button?

    Hi, this must be a very basic question, but I can't find a way to do it. So here it goes.

    I'm wondering how you run a query by clicking on a command button on a form. You can use a Command Button Wizard, which lets you choose an option and automatically connects the button to some sort of a method that runs the given query. But I'd like to do it manually.



    How do you do it? What method or a group of VBA codes do you need to put in which part?

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Have you considered using the wizard, then analyze the code created by the wizard? That should give you some insight on the steps involved to do it manually.


    Good luck.

  3. #3
    sgkim151 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    May 2016
    Location
    Incheon, Korea
    Posts
    6
    I've figured that out. I had zero knowledge on macros and embedded macros, which I've just taught myself. Thanks for the reply!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Automating Button Clicking
    By csn102 in forum Programming
    Replies: 3
    Last Post: 11-05-2015, 02:01 PM
  2. Replies: 2
    Last Post: 09-15-2015, 03:08 AM
  3. Replies: 14
    Last Post: 02-19-2013, 03:16 PM
  4. Replies: 7
    Last Post: 12-17-2011, 08:06 PM
  5. Comments when clicking a button
    By Juan4412 in forum Programming
    Replies: 4
    Last Post: 06-23-2011, 04:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums