Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Select Case as macro

Posted on 2008-10-29
4
386 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

809 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