lorenambrose
Active Member
- Joined
- Sep 17, 2008
- Messages
- 265
I have the following VBA in a form:
Private Sub Command23_Click()
If Me.Email = "Sent" Then
If MsgBox("Notification has already been sent. Do you wish to re-send?", vbYesNo, "Send Notification?") = vbYes Then
DoCmd.RunMacro "SendMail"
Else
DoCmd.Close
End If
Else
DoCmd.RunMacro "SendMail"
End If
End Sub
My issue is that when it executes a window pops up prompting the user to "Allow", "Deny" or "Help". SEE ATTACHMENT.
<TABLE style="WIDTH: auto; DISPLAY: inline" id=ipb-attach-table-45639-0-14210200-1302222424 cellSpacing=0 cellPadding=0><TBODY><TR><TD>
Reduced 85%
******** type=text/javascript>//*********>
http://i630.photobucket.com/albums/uu24/lorenambrose/Email2.jpg
I can not see any way to prevent the user from selecting "Deny" or "Help", and when they do errors happen causing the macro to stop and the debugger to activate.
<TABLE style="WIDTH: auto; DISPLAY: inline" id=ipb-attach-table-45640-0-14259900-1302222424 cellSpacing=0 cellPadding=0><TBODY><TR><TD>
Reduced 79%
******** type=text/javascript>//*********>
Is there a way around this? Please Help.
Maybe VBA instead of the email macro.
Private Sub Command23_Click()
If Me.Email = "Sent" Then
If MsgBox("Notification has already been sent. Do you wish to re-send?", vbYesNo, "Send Notification?") = vbYes Then
DoCmd.RunMacro "SendMail"
Else
DoCmd.Close
End If
Else
DoCmd.RunMacro "SendMail"
End If
End Sub
My issue is that when it executes a window pops up prompting the user to "Allow", "Deny" or "Help". SEE ATTACHMENT.
<TABLE style="WIDTH: auto; DISPLAY: inline" id=ipb-attach-table-45639-0-14210200-1302222424 cellSpacing=0 cellPadding=0><TBODY><TR><TD>
******** type=text/javascript>//*********>
http://i630.photobucket.com/albums/uu24/lorenambrose/Email2.jpg
I can not see any way to prevent the user from selecting "Deny" or "Help", and when they do errors happen causing the macro to stop and the debugger to activate.
<TABLE style="WIDTH: auto; DISPLAY: inline" id=ipb-attach-table-45640-0-14259900-1302222424 cellSpacing=0 cellPadding=0><TBODY><TR><TD>
******** type=text/javascript>//*********>
Is there a way around this? Please Help.
Maybe VBA instead of the email macro.