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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

open query from Switchboard



 
 
Thread Tools Display Modes
  #1  
Old April 22nd, 2010, 10:31 AM posted to microsoft.public.access.gettingstarted
Kathryn
external usenet poster
 
Posts: 108
Default open query from Switchboard

I have set up two queries so that we can do a mail (email) merge with Word
2007 - one for mailing to individuals, the other to organisations.
I would now like to add "shortcuts"/ "commands" (or whatever the proper term
is!) to the Contacts Switchboard so that it opens the queries to set the
process in motion.

Alternatively, is there a way I can put something there that will
automatically select the query and start the "Mail merge to Word" wizard (or
is that just too ambitious?!)

I am beginning to get to grips with code if it's simply explained but don't
know anything about macros (yet...) The queries are called Email Query -
Individuals and Email Query - organisations. (I know this may not be
technically correct but means we know what we are talking about!)

Many thanks.
  #2  
Old April 22nd, 2010, 05:30 PM posted to microsoft.public.access.gettingstarted
fredg
external usenet poster
 
Posts: 4,386
Default open query from Switchboard

On Thu, 22 Apr 2010 02:31:01 -0700, Kathryn wrote:

I have set up two queries so that we can do a mail (email) merge with Word
2007 - one for mailing to individuals, the other to organisations.
I would now like to add "shortcuts"/ "commands" (or whatever the proper term
is!) to the Contacts Switchboard so that it opens the queries to set the
process in motion.

Alternatively, is there a way I can put something there that will
automatically select the query and start the "Mail merge to Word" wizard (or
is that just too ambitious?!)

I am beginning to get to grips with code if it's simply explained but don't
know anything about macros (yet...) The queries are called Email Query -
Individuals and Email Query - organisations. (I know this may not be
technically correct but means we know what we are talking about!)

Many thanks.


The Access built-in switchboard does not offer a direct method to open
a query (just another reason not to use the built-in switchboard
manager).
What you can do is create a macro to open the query. Then use the
switchboard manager to run the macro.

If you are comfortable with code, create a Module to open the query:

Public Sub OpenAQuery()
DoCmd.OpenQuery "QueryName"
End Sub

Then use the switchboard manager to RunCode in the Command Box and
enter OpenAQuery in the Function Name box.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
  #3  
Old April 23rd, 2010, 03:35 PM posted to microsoft.public.access.gettingstarted
Kathryn
external usenet poster
 
Posts: 108
Default open query from Switchboard

Thanks Fred

I haven't done much by way of code but think it is something I'll have to
get to grips with! I'll give this a try and see what happens!

"fredg" wrote:

On Thu, 22 Apr 2010 02:31:01 -0700, Kathryn wrote:

I have set up two queries so that we can do a mail (email) merge with Word
2007 - one for mailing to individuals, the other to organisations.
I would now like to add "shortcuts"/ "commands" (or whatever the proper term
is!) to the Contacts Switchboard so that it opens the queries to set the
process in motion.

Alternatively, is there a way I can put something there that will
automatically select the query and start the "Mail merge to Word" wizard (or
is that just too ambitious?!)

I am beginning to get to grips with code if it's simply explained but don't
know anything about macros (yet...) The queries are called Email Query -
Individuals and Email Query - organisations. (I know this may not be
technically correct but means we know what we are talking about!)

Many thanks.


The Access built-in switchboard does not offer a direct method to open
a query (just another reason not to use the built-in switchboard
manager).
What you can do is create a macro to open the query. Then use the
switchboard manager to run the macro.

If you are comfortable with code, create a Module to open the query:

Public Sub OpenAQuery()
DoCmd.OpenQuery "QueryName"
End Sub

Then use the switchboard manager to RunCode in the Command Box and
enter OpenAQuery in the Function Name box.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
.

 




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 12:46 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.