L
Larry06Green
I created a form for users to add project records into the database. After
entering all pertinent information the user hits a command buttom that
displays a msgbox which states that their project information has been saved
and asks the user if they would like to send an email notification. The
problem I'm hearing from many of my users is that when they choose to send an
email notification, using Lotus Notes, the email does not contain a
description of their project, but instead contains the description for
someone else's project. How can I stop this from happening? Is there a remedy
for this problem? Help!!!!! Here is the VBA code behind the "Add Project"
command button:
Private Sub AddProject_Click()
On Error GoTo Err_AddProject_Click
Dim intPress As Integer
Dim intPress1 As Integer
DoCmd.Beep
intPress = MsgBox("The project information entered has been saved. Would
you like to send an Email Notification?", vbQuestion + _
vbYesNo, "Marketing Analytical Request System")
If intPress = 6 Then
DoCmd.Close
DoCmd.OpenForm "Switchboard"
DoCmd.Close
DoCmd.SendObject acSendReport, "rptLastProject", "HTML(*.html)", ,
, , "New Project Notification"
DoCmd.OpenForm "frmtest3a", acNormal
DoCmd.Maximize
DoCmd.GoToRecord , , acNewRec
End If
If intPress = 7 Then
DoCmd.Beep
intPress1 = MsgBox("Do you want to enter another Project?",
vbQuestion + _
vbYesNo, "Marketing Analytical Request System")
End If
If intPress1 = 6 Then
DoCmd.Close
DoCmd.OpenForm "Switchboard"
DoCmd.Close
DoCmd.OpenForm "frmtest3a", acNormal
DoCmd.Maximize
DoCmd.GoToRecord , , acNewRec
End If
If intPress1 = 7 Then
DoCmd.Close
DoCmd.OpenForm "Switchboard", acNormal
End If
Exit_AddProject_Click:
Exit Sub
Err_AddProject_Click:
MsgBox Err.Description
Resume Exit_AddProject_Click
End Sub
entering all pertinent information the user hits a command buttom that
displays a msgbox which states that their project information has been saved
and asks the user if they would like to send an email notification. The
problem I'm hearing from many of my users is that when they choose to send an
email notification, using Lotus Notes, the email does not contain a
description of their project, but instead contains the description for
someone else's project. How can I stop this from happening? Is there a remedy
for this problem? Help!!!!! Here is the VBA code behind the "Add Project"
command button:
Private Sub AddProject_Click()
On Error GoTo Err_AddProject_Click
Dim intPress As Integer
Dim intPress1 As Integer
DoCmd.Beep
intPress = MsgBox("The project information entered has been saved. Would
you like to send an Email Notification?", vbQuestion + _
vbYesNo, "Marketing Analytical Request System")
If intPress = 6 Then
DoCmd.Close
DoCmd.OpenForm "Switchboard"
DoCmd.Close
DoCmd.SendObject acSendReport, "rptLastProject", "HTML(*.html)", ,
, , "New Project Notification"
DoCmd.OpenForm "frmtest3a", acNormal
DoCmd.Maximize
DoCmd.GoToRecord , , acNewRec
End If
If intPress = 7 Then
DoCmd.Beep
intPress1 = MsgBox("Do you want to enter another Project?",
vbQuestion + _
vbYesNo, "Marketing Analytical Request System")
End If
If intPress1 = 6 Then
DoCmd.Close
DoCmd.OpenForm "Switchboard"
DoCmd.Close
DoCmd.OpenForm "frmtest3a", acNormal
DoCmd.Maximize
DoCmd.GoToRecord , , acNewRec
End If
If intPress1 = 7 Then
DoCmd.Close
DoCmd.OpenForm "Switchboard", acNormal
End If
Exit_AddProject_Click:
Exit Sub
Err_AddProject_Click:
MsgBox Err.Description
Resume Exit_AddProject_Click
End Sub