Created
June 26, 2013 20:31
-
-
Save devinrader/5871357 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub btnOK_Click() | |
Dim msg As String | |
msg = Me.txtMessage.Value | |
Dim db As DAO.Database | |
Dim rs As DAO.Recordset | |
Dim strSQL As String | |
Set db = CurrentDb | |
Dim qdf As QueryDef | |
Set qdf = CurrentDb.QueryDefs("Roster") | |
Set roster = qdf.OpenRecordset() | |
roster.MoveFirst | |
Do While roster.EOF = False | |
SendSMS "+17045943984", roster![ContactNumber], msg | |
roster.MoveNext | |
Loop | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment