Steve,
I need several things to happen for my users "behind the
scenes" using a macro. These are the steps:
1. Run a query
2. Run a second query
3. Open a form, press the command button (which processes
my VB code)
4. Close the form
5. Run a third query using the new information that the
VB code created.
6. Open the report based on the third query.
I know how to use the macro for everything except
processing the VB code in step 3. I am now pressing the
command button, (cmdProcessExcptCode), in a form to start
the following code.
Select Case [excpt_rate]
Case Is = 0
[ExcptPer] = "=0%"
Case 0.01 To 0.1
[ExcptPer] = "> 0% and =< 10%"
Case 0.101 To 0.25
[ExcptPer] = "> 10% and =< 25%"
Case 0.251 To 1
[ExcptPer] = "> 26% and =< 100%"
Case Else
[ExcptPer] = "null"
End Select
By the way, explain to me what a mouse is??? (just
kidding!)
-----Original Message-----
Sharon,
Could you please clarify what you mean? I normally use a mouse to press
a command button. What do you want the macro to do?
--
Steve Schapel, Microsoft Access MVP
.