I have created leave approval form. Once the leave status are approved this details should be mailed to HR department. How to send mail ?
Thanks in advance.
It's this line:
Dim oMessage As Message
That's defining it as a windows API message, you need to specify that it's SAP:
Dim oMessage As SAPbobsCOM.Message