abbaddon223
Registered User.
- Local time
- Today, 11:11
- Joined
- Mar 13, 2010
- Messages
- 162
Hi all,
I have the below code that will create an outlook event and populate the fields as required. I'm trying to modify this so that instead of opening an email outlook event, it opens an SMS event (I've got the add in installed).
Private Sub Command127_Click()
Dim Olk As Outlook.Application
Set Olk = CreateObject("Outlook.application")
Dim OlkMsg As Outlook.MailItem
Set OlkMsg = Olk.CreateItem(olMailItem)
With OlkMsg
Dim OlkRecip As Outlook.Recipient
Set OlkRecip = .Recipients.Add(Me![Mobile])
OlkRecip.Type = SMS
.Subject = "Shift Confirmation"
On Error Resume Next
.Body = Me![SMSNote]
.Display
End With
Set Olk = Nothing
Set OlkMsg = Nothing
Set OlkRecip = Nothing
End Sub
All the fields should be fine, its just how to open the SMS.
Thanks all in advance.
I have the below code that will create an outlook event and populate the fields as required. I'm trying to modify this so that instead of opening an email outlook event, it opens an SMS event (I've got the add in installed).
Private Sub Command127_Click()
Dim Olk As Outlook.Application
Set Olk = CreateObject("Outlook.application")
Dim OlkMsg As Outlook.MailItem
Set OlkMsg = Olk.CreateItem(olMailItem)
With OlkMsg
Dim OlkRecip As Outlook.Recipient
Set OlkRecip = .Recipients.Add(Me![Mobile])
OlkRecip.Type = SMS
.Subject = "Shift Confirmation"
On Error Resume Next
.Body = Me![SMSNote]
.Display
End With
Set Olk = Nothing
Set OlkMsg = Nothing
Set OlkRecip = Nothing
End Sub
All the fields should be fine, its just how to open the SMS.
Thanks all in advance.