guys - i have a bit of code (below) pinched from the site somewhere ...
- anyway I need one fields ([Forms]![quotefrm]![ELLiability] ) to be formated as a standard format (ie 10,000,000)
(I have cut out a lot of the blurb in the emailsendbody...)
any pointers ...
Dim EmailApp, NameSpace, EmailSend As Object
Set EmailApp = CreateObject("Outlook.Application")
Set NameSpace = EmailApp.GetNamespace("MAPI")
Set EmailSend = EmailApp.CreateItem(0)
EmailSend.To = [Forms]![quotefrm]!
EmailSend.Subject = " Our Reference :-" & " " & [Forms]![quotefrm]![QuoteNo] & " - " & "(" & [Forms]![quotefrm]![Insured] & ")"
EmailSend.body = "For the Attention of :- " & Chr(9) & [Forms]![quotefrm]![POC] & vbCrLf & "Employers Liability " & [Forms]![quotefrm]![ELLiability] &
'EmailSend.Attachments.Add "C:\temp\cancellation.xls"
EmailSend.Display
Set EmailApp = Nothing
Set NameSpace = Nothing
Set EmailSend = Nothing
'Kill "C:\temp\test2.xls"
End Sub
- anyway I need one fields ([Forms]![quotefrm]![ELLiability] ) to be formated as a standard format (ie 10,000,000)
(I have cut out a lot of the blurb in the emailsendbody...)
any pointers ...
Dim EmailApp, NameSpace, EmailSend As Object
Set EmailApp = CreateObject("Outlook.Application")
Set NameSpace = EmailApp.GetNamespace("MAPI")
Set EmailSend = EmailApp.CreateItem(0)
EmailSend.To = [Forms]![quotefrm]!
EmailSend.Subject = " Our Reference :-" & " " & [Forms]![quotefrm]![QuoteNo] & " - " & "(" & [Forms]![quotefrm]![Insured] & ")"
EmailSend.body = "For the Attention of :- " & Chr(9) & [Forms]![quotefrm]![POC] & vbCrLf & "Employers Liability " & [Forms]![quotefrm]![ELLiability] &
'EmailSend.Attachments.Add "C:\temp\cancellation.xls"
EmailSend.Display
Set EmailApp = Nothing
Set NameSpace = Nothing
Set EmailSend = Nothing
'Kill "C:\temp\test2.xls"
End Sub