K
Kim
When I ran the performance analyzer in my database it suggested I convert my
macros to visual basic. No problem, converted them, but since this is the
first time I've done it, now I'm stumped. This is the code from one of my
forms and I can't figure out how to use Visual Basic instead of the macros.
Can anybody help? thanks in advance.
Kim
Private Sub cmdFindQuote_Click()
Select Case Me.MyOptionGroup
Case 1
DoCmd.RunMacro "Macro1", 1
DoCmd.Close acForm, "Form1", acDefault
Case 2
DoCmd.RunMacro "Macro2", 1
DoCmd.Close acForm, "Form1", acDefault
Case 3
DoCmd.RunMacro "Macro3", 1
DoCmd.Close acForm, "Form1", acDefault
End Select
End Sub
macros to visual basic. No problem, converted them, but since this is the
first time I've done it, now I'm stumped. This is the code from one of my
forms and I can't figure out how to use Visual Basic instead of the macros.
Can anybody help? thanks in advance.
Kim
Private Sub cmdFindQuote_Click()
Select Case Me.MyOptionGroup
Case 1
DoCmd.RunMacro "Macro1", 1
DoCmd.Close acForm, "Form1", acDefault
Case 2
DoCmd.RunMacro "Macro2", 1
DoCmd.Close acForm, "Form1", acDefault
Case 3
DoCmd.RunMacro "Macro3", 1
DoCmd.Close acForm, "Form1", acDefault
End Select
End Sub