bare with me here..i am no vb expert...
i need to dynamically create the variables in call to sendmail at run time...eg: email addr, accountno, lastname, frstname...there can be 1 variable or 10 it can be different each time..and the sendmail sub must be built accordingly each time
Private Sub Start_Click()
Dim SQLString As String
SQLString = SQL_ScriptString
Set rs = New ADODB.Recordset
rs.Open SQLString, cn, adOpenStatic, adLockPessimistic
rs.MoveLast
SendMail rs("email_addr"
, rs("accountno"
, rs("lastname"
, rs("frstname"
.
.
.
End Sub
-
----------------------------------------------------------
-
Private Sub SendMail(stremail_addr$, straccountno$, strlastname$, strfrstname$)
thanks in advance
i need to dynamically create the variables in call to sendmail at run time...eg: email addr, accountno, lastname, frstname...there can be 1 variable or 10 it can be different each time..and the sendmail sub must be built accordingly each time
Private Sub Start_Click()
Dim SQLString As String
SQLString = SQL_ScriptString
Set rs = New ADODB.Recordset
rs.Open SQLString, cn, adOpenStatic, adLockPessimistic
rs.MoveLast
SendMail rs("email_addr"
.
.
.
End Sub
-
----------------------------------------------------------
-
Private Sub SendMail(stremail_addr$, straccountno$, strlastname$, strfrstname$)
thanks in advance