MsgBox Module Help

D

DLH

Hello,

I'm trying to fumble my way through a module to create the following sub.
Can you tell me what I'm doing wrong and how I can call this from a macro?
Or let me know if I'm totally off base... Thanks so much!

Option Compare Database
Option Explicit

Private Sub Append1_MsgBox()

Dim intAnswer As Integer

intAnswer = MsgBox("Append to comprehensive data? Click Yes to append -
No to skip - Cancel to quit", 3)

If intAnswer = 6 Then
DoCmd.RunMacro "UDMP Process - 02 Transform.AppendToComp"

ElseIf intAnswer = 7 Then
DoCmd.RunMacro "UDMP Process - 02 Transform.CreatePREPfile"

ElseIf intAnswer = 2 Then
DoCmd.Close

End If
End Sub
 
D

DLH via AccessMonster.com

Hi All,

Please disregard this post. I was able to figure it out myself. Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Making a macro only work on certain files 2
IF ElseIf and Else 7
acDialog - Form Invisible? 1
Rename Message Box 3
Limit to List question 11
Jet Engine Error Message 2
Match style 0
Help with this Event Procedure 14

Top