F
Fev
Hi Experts
I have very little programming knowledge and I would appreciate help
with the following:
I have a form that lists a group of names and cell numbers based on a
combo box selection. I then have code on a button that concatenates
all the cell numbers into a string with each number seperated by a
semicolon. I need to write this string to: table:
tblNewSMS field: receiver
I keep getting Error 424 Object required. My code is as follows:
Private Sub cmdSendSMS_Click()
On Error GoTo ProcError
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim strUsers As String
Set db = CurrentDb()
Set rs = db.OpenRecordset("SELECT CellNumber FROM tblSMSTemp " _
& "WHERE CellNumber Is Not Null")
With rs
Do Until rs.EOF
strUsers = strUsers & "+27" & Right(rs![CellNumber], 9) & ";"
rs.MoveNext
Loop
Table!tblNewSMS!receiver = strUsers
more code ....
I would appreciate any help
Thanks
Heather
I have very little programming knowledge and I would appreciate help
with the following:
I have a form that lists a group of names and cell numbers based on a
combo box selection. I then have code on a button that concatenates
all the cell numbers into a string with each number seperated by a
semicolon. I need to write this string to: table:
tblNewSMS field: receiver
I keep getting Error 424 Object required. My code is as follows:
Private Sub cmdSendSMS_Click()
On Error GoTo ProcError
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim strUsers As String
Set db = CurrentDb()
Set rs = db.OpenRecordset("SELECT CellNumber FROM tblSMSTemp " _
& "WHERE CellNumber Is Not Null")
With rs
Do Until rs.EOF
strUsers = strUsers & "+27" & Right(rs![CellNumber], 9) & ";"
rs.MoveNext
Loop
Table!tblNewSMS!receiver = strUsers
more code ....
I would appreciate any help
Thanks
Heather