Hi,
I have this code that i want send as body message in email but i want to pickup the company name according the company i am sending the invoice,
but giving me error 2465 cannot find the field,
Here it's the code:
when give me the above error and click debug it highlight this line:
thanks
I have this code that i want send as body message in email but i want to pickup the company name according the company i am sending the invoice,
but giving me error 2465 cannot find the field,
Here it's the code:
Code:
Private Sub btnSend_Click()
Dim oApp As New Outlook.Application
Dim oEmail As Outlook.MailItem
Set oEmail = oApp.CreateItem(olMailItem)
oEmail.To = Me.txtTo
oEmail.subject = Me.txtSubject
oEmail.Body = "Here is the monthly invoice # for " & [Company Name] & "." & "Please confirm if we may collect the payment from your wallet.Please contact me if you have any questions.Thanks,"
when give me the above error and click debug it highlight this line:
Code:
"Here is the monthly invoice # for " & [Company Name] & "." & "Please confirm if we may collect the payment from your wallet.Please contact me if you have any questions.Thanks,"
thanks