Onlylonely
Registered User.
- Local time
- Tomorrow, 04:42
- Joined
- Jan 18, 2017
- Messages
- 43
Hi Guys,
Appreciate if you are able to give some advise on below issue:
What i'm getting now is
Part Number : 54
Received Qty: 54
Rejected Qty: 1
QN : 2
Supplier : 3
Rejection : 4
What i wish to get is in table form (Not able to draw a table here)
Part Number 54
Received Qty 54
Rejected Qty 1
QN********* 2
Supplier*** 3
Rejection** 4
Appreciate if you are able to give some advise on below issue:
What i'm getting now is
Part Number : 54
Received Qty: 54
Rejected Qty: 1
QN : 2
Supplier : 3
Rejection : 4
What i wish to get is in table form (Not able to draw a table here)
Part Number 54
Received Qty 54
Rejected Qty 1
QN********* 2
Supplier*** 3
Rejection** 4
Code:
Function Email()
Dim oApp As Outlook.Application
Dim oMail As MailItem
Set oApp = CreateObject("Outlook.application")
Dim mailbody As String
Set oMail = oApp.CreateItem(olMailItem)
oMail.Subject = "[eIncoming - Autogenerated] - Part " & Forms!QCform!Part_Number & " rejected."
oMail.Body = "Hi Team," & Chr(10) & Chr(10)
oMail.Body = oMail.Body & "Part Number : " & Forms!QCform!Part_Number & Chr(10)
oMail.Body = oMail.Body & "Received Qty: " & Forms!QCform!Qty & Chr(10)
oMail.Body = oMail.Body & "Rejected Qty: " & Forms!QCform!Qty_Reject & Chr(10)
oMail.Body = oMail.Body & "QN : " & Forms!QCform!QN & Chr(10)
oMail.Body = oMail.Body & "Supplier : " & Forms!QCform!Supplier & Chr(10)
oMail.Body = oMail.Body & "Rejection : " & Forms!QCform!Txtrejection & Chr(10)
' omailbody = omailbody & "<TR>" & _
' "<TD ><center>" & rs.Fields![Rep name].Value & "</TD>" & _
' "<TD><center>" & rs.Fields![zone].Value & "</TD>" & _
' "<TD><center>" & rs.Fields![Location].Value & "</TD>" & _
' "<TD><center>" & rs.Fields![Sales].Value & "</TD>" & _
'oMail.Body = "Hi Team, " & vbCrLf & vbCrLf & " Part Number: " & Forms!QCform!Part_Number & vbCrLf & " Rejected Qty: " & Forms!QCform!Qty & vbCrLf & "QN: " & Forms!QCform!Part_Number & vbCrLf & vbCrLf & vbCrLf & "Regards, " & vbCrLf & "TonyShieh"
oMail.To = "abc@yahoo.com"
oMail.Send
Set oMail = Nothing
Set oApp = Nothing
End Function