A
Al
I am using this code that was posted in the forum by Phill a while back and I
am getting an error message:
Dim rs As DAO.Recordset
Dim sAddress As String, sql As String
sql = "SELECT email FROM emailReports"
Set rs = CurrentDb.OpenRecordset(sql)
Debug.Print sql
rs.MoveLast
sAddress = Join(rs.GetRows(rs.RecordCount), ";")
MsgBox sAddress
********************************
The Error message breaks on "sAddress=Join(rs.GetRows(rs.RecordCount),";")
Message:"Invalid procedure call or argument"
any idea what is wrong?
thanks
am getting an error message:
Dim rs As DAO.Recordset
Dim sAddress As String, sql As String
sql = "SELECT email FROM emailReports"
Set rs = CurrentDb.OpenRecordset(sql)
Debug.Print sql
rs.MoveLast
sAddress = Join(rs.GetRows(rs.RecordCount), ";")
MsgBox sAddress
********************************
The Error message breaks on "sAddress=Join(rs.GetRows(rs.RecordCount),";")
Message:"Invalid procedure call or argument"
any idea what is wrong?
thanks