Solved

Select Case as macro

Posted on 2008-10-29
4
377 Views
Last Modified: 2012-06-27
Is there a way to do Select Case in a Macro?  Or if I Have a message saying do you want to run this and they say not it will stop the rest of the macro from running?

2007 is createing macro when I create a button to run a query, but I am not real sure how to do some of the things I used to do in code.  

Thanks, Pat
0
Comment
Question by:PatKung
  • 2
4 Comments
 
LVL 75
ID: 22835057
I *think* ... that in A2007, something like this can now be done.  I don't have A2007 loaded at the moment.

mx
0
 
LVL 44

Accepted Solution

by:
GRayL earned 500 total points
ID: 22836190
Why not use the macro to RunCode?  And the function named in RunCode has the Select Case?
0
 

Author Comment

by:PatKung
ID: 22859154
That should work.  

Thanks, Pat
0
 
LVL 44

Expert Comment

by:GRayL
ID: 22859496
Thanks, glad to help.

Ray
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question