G
Guest
I have created a button on my contact form which launches an e-mail that will
list all interviews listed for that contact. I am using the GetString method
to convert the recordset to a string before inserting into the e-mail.
However, this also deposits the ContactID in the body of the e-mail. Is there
a way to remove the candidateID field after the recordset has been filtered
and before I invoke the GetString method? I have not yet found one. Please
see code below. Thank you!
Private Sub Command261_Click()
Dim rst As ADODB.Recordset
Dim sched As Variant
Dim emsubj As String
Set rst = New ADODB.Recordset
rst.Open "qryInterviewEmail", "Provider=Microsoft.Jet.OLEDB.4.0; Data Source
= C:\Documents and Settings\Administrator\Desktop\mydatabase.mdb",
adOpenForwardOnly, adLockReadOnly
rst.Filter = "CandidateID = " & ContactID
emsubj = "Interview Schedule for " & Fullname
sched = rst.GetString
Call SendEmail("", "", "", emsubj, sched, "")
End Sub
list all interviews listed for that contact. I am using the GetString method
to convert the recordset to a string before inserting into the e-mail.
However, this also deposits the ContactID in the body of the e-mail. Is there
a way to remove the candidateID field after the recordset has been filtered
and before I invoke the GetString method? I have not yet found one. Please
see code below. Thank you!
Private Sub Command261_Click()
Dim rst As ADODB.Recordset
Dim sched As Variant
Dim emsubj As String
Set rst = New ADODB.Recordset
rst.Open "qryInterviewEmail", "Provider=Microsoft.Jet.OLEDB.4.0; Data Source
= C:\Documents and Settings\Administrator\Desktop\mydatabase.mdb",
adOpenForwardOnly, adLockReadOnly
rst.Filter = "CandidateID = " & ContactID
emsubj = "Interview Schedule for " & Fullname
sched = rst.GetString
Call SendEmail("", "", "", emsubj, sched, "")
End Sub