What i am doing or need to do is get a list of names from a table and add it to a notes email
i only want the list in one email so i tried to loop around the table and get the values BUT it only sends one name (IN THE VARIABLE COUNTERS)
Can someone SHOW me how to do this ??
Dim Rs
Dim COUNTERS
''Connection object is here
Set Rs = CreateObject("ADODB.Recordset"
sSQL2 = "Select USER_GROUP_NM from USER_GROUP_DELETED"
Set Rs = ObjConn.Execute(sSQL2)
While Not Rs.EOF Or Rs.bof
COUNTERS = Rs.fields("USER_GROUP_NM"
Rs.movenext
Wend
strMessage = "There is an error in the DTS package " & Counters
Thanks in advance
i only want the list in one email so i tried to loop around the table and get the values BUT it only sends one name (IN THE VARIABLE COUNTERS)
Can someone SHOW me how to do this ??
Dim Rs
Dim COUNTERS
''Connection object is here
Set Rs = CreateObject("ADODB.Recordset"
sSQL2 = "Select USER_GROUP_NM from USER_GROUP_DELETED"
Set Rs = ObjConn.Execute(sSQL2)
While Not Rs.EOF Or Rs.bof
COUNTERS = Rs.fields("USER_GROUP_NM"
Rs.movenext
Wend
strMessage = "There is an error in the DTS package " & Counters
Thanks in advance