G
Guest
I have this code
Private Sub chkApproved_Click()
If Me.chkapproved = True Then
DoCmd.SendObject acSendNoObject, , , to:=, Subject:=[TA Number],
MessageText:="Dear " & [First and Last Name] & ", " & vbCrLf & "Your travel
to " & [Destination] & " on " & [Date Leave] & " " & "has been approved.",
EditMessage:=False
End If
If Me.chknotapproved = True Then
DoCmd.SendObject acSendNoObject, , , to:=[Email], Subject:=[TA Number],
MessageText:="Dear " & [First and Last Name] & ", " & vbCrLf & "Your travel
to " & [Destination] & " on " & [Date Leave] & " " & "has not been approved.
Pls contact me at your earliest convince." & " " & "Thx Lewis",
EditMessage:=False
End If
If Me.chkapproved = True Then
DoCmd.OpenReport "Travel Request 0 Layover", acViewPreview, , "[TA
Numbers.TA Number]=[Forms]![Appoved]![TA Number]"
DoCmd.SendObject acSendReport, "Travel Request 0 Layover", acFormatSNP,
[Request Given to Email], , , "Travel Approved" & " " & [TA Number] & " " &
[First and Last Name], , False
DoCmd.PrintOut
DoCmd.Close
End If
End Sub
I have the two check boxes. Travel Approved and Revised. When a supervisor
checks Travel Approved then It send an email to the traveler and to me.
However If the box Revised is checked which is automatically done when they
revise there trip. I would Like the Email to read a little differently. I
do I add this step?
I would like the email to the Traveler to be something around the lines of
"Your revision to [Desination] on [Date Leave] has been approved.
and the one sent to me to say something like [First and Last Name]'s trip
to [Destination] on [Date Leave] has been revised and approved. Please fix
changes made.
Thanks
Chey
Private Sub chkApproved_Click()
If Me.chkapproved = True Then
DoCmd.SendObject acSendNoObject, , , to:=, Subject:=[TA Number],
MessageText:="Dear " & [First and Last Name] & ", " & vbCrLf & "Your travel
to " & [Destination] & " on " & [Date Leave] & " " & "has been approved.",
EditMessage:=False
End If
If Me.chknotapproved = True Then
DoCmd.SendObject acSendNoObject, , , to:=[Email], Subject:=[TA Number],
MessageText:="Dear " & [First and Last Name] & ", " & vbCrLf & "Your travel
to " & [Destination] & " on " & [Date Leave] & " " & "has not been approved.
Pls contact me at your earliest convince." & " " & "Thx Lewis",
EditMessage:=False
End If
If Me.chkapproved = True Then
DoCmd.OpenReport "Travel Request 0 Layover", acViewPreview, , "[TA
Numbers.TA Number]=[Forms]![Appoved]![TA Number]"
DoCmd.SendObject acSendReport, "Travel Request 0 Layover", acFormatSNP,
[Request Given to Email], , , "Travel Approved" & " " & [TA Number] & " " &
[First and Last Name], , False
DoCmd.PrintOut
DoCmd.Close
End If
End Sub
I have the two check boxes. Travel Approved and Revised. When a supervisor
checks Travel Approved then It send an email to the traveler and to me.
However If the box Revised is checked which is automatically done when they
revise there trip. I would Like the Email to read a little differently. I
do I add this step?
I would like the email to the Traveler to be something around the lines of
"Your revision to [Desination] on [Date Leave] has been approved.
and the one sent to me to say something like [First and Last Name]'s trip
to [Destination] on [Date Leave] has been revised and approved. Please fix
changes made.
Thanks
Chey