E
emailmeeric
Overall goal: Concatenate and format a record's information and it's
related information into a memo field to be then sent as an SMTP text
email.
Access 2003 using DAO
First thanks for looking. All of you are an incredibly valuable
resource and I really appreciate your time.
I am trying to figure out how to concatenate multiple related records
in a carriage return format (VbCrLf) into one memo field.
For example you have a problem table and you concatenate it's fields
together i.e.
Dim txt1, txt2, txtBody as String
txt1 = "Title: " & Me!ProblemTitle
txt2 = "Description: " & Me!ProblemDescription
txtBody = txt1 & VbCrLf & txt2
Then you send the txtBody string along as an email.
How would I go about concatenating multiple related records in a one-
many relationship to this string txtBody?
For example say there was a solution table that contained multiple
solutions for this problem.
tblSolution
lngSolutionID
txtSolutionDescription
I was thinking of creating a query using DoCmd.RunSQL and then
counting it's records and then trying to capture each one but no
matter which way I try I cannot get it. I have always been horrible at
opening recordsets and recursing through the records to get
information. I just have never been able to get the correct syntax.
Anyone have any ideas that might help?
Thanks,
Eric
related information into a memo field to be then sent as an SMTP text
email.
Access 2003 using DAO
First thanks for looking. All of you are an incredibly valuable
resource and I really appreciate your time.
I am trying to figure out how to concatenate multiple related records
in a carriage return format (VbCrLf) into one memo field.
For example you have a problem table and you concatenate it's fields
together i.e.
Dim txt1, txt2, txtBody as String
txt1 = "Title: " & Me!ProblemTitle
txt2 = "Description: " & Me!ProblemDescription
txtBody = txt1 & VbCrLf & txt2
Then you send the txtBody string along as an email.
How would I go about concatenating multiple related records in a one-
many relationship to this string txtBody?
For example say there was a solution table that contained multiple
solutions for this problem.
tblSolution
lngSolutionID
txtSolutionDescription
I was thinking of creating a query using DoCmd.RunSQL and then
counting it's records and then trying to capture each one but no
matter which way I try I cannot get it. I have always been horrible at
opening recordsets and recursing through the records to get
information. I just have never been able to get the correct syntax.
Anyone have any ideas that might help?
Thanks,
Eric