A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Associate a form button to a query



 
 
Thread Tools Display Modes
  #1  
Old May 28th, 2010, 11:11 PM posted to microsoft.public.access.forms
Anita
external usenet poster
 
Posts: 202
Default Associate a form button to a query

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
  #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

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:01 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.