View Single Post
  #2  
Old May 28th, 2010, 11:17 PM posted to microsoft.public.access.forms
PieterLinden via AccessMonster.com
external usenet poster
 
Posts: 307
Default Associate a form button to a query

Anita wrote:
I have an existing form associated to a table. In the form I would like to
associate a button to a query instead of the whole table. Can this be done?
Thanks, Anita


You want the query to open when you click the button? Then use this in the
button's click event.
DoCmd.OpenQuery "queryname"

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/201005/1