Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2003
    Location
    Washington DC area
    Posts
    1,770

    Wink Unanswered: Attach a query to a form button

    Hello gang, I have a form with a button that I need to attach a query to for a users. Any ideas?

  2. #2
    Join Date
    Feb 2004
    Location
    Bethlehem, PA
    Posts
    7

    Re: Attach a query to a form button

    Originally posted by garrydawkins
    Hello gang, I have a form with a button that I need to attach a query to for a users. Any ideas?
    How about creating a macro? Use OpenQuery Function. Then make the button go to properties tag click on EventTab and on click select the macro, onDclclick select same macro.

  3. #3
    Join Date
    Dec 2003
    Location
    Toronto, Ont. Canada
    Posts
    238

    Re: Attach a query to a form button

    Originally posted by garrydawkins
    Hello gang, I have a form with a button that I need to attach a query to for a users. Any ideas?
    In the button's Click Event put...
    DoCmd.OpenQuery "YourQueryName"

    HTH

  4. #4
    Join Date
    Apr 2003
    Location
    Washington DC area
    Posts
    1,770

    Smile I get it

    There was a previous macro in there. I just changed the query to the new query.

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •