[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

How can I loop through the columns in a recordset and get them into the body of an email

Asked by ssmith94015 in Microsoft Development, Microsoft Programming, Microsoft Access Database

Tags: VBA

I have a recordset with ab out 30 columns that the user wants to appear in the body of the email not an attachment.  Problem is I simply cannot get the code to work to loop through the data.  I get a lot of invalid use of nulls (tried the Nz but does not always work).  not it stops and says Invlalid procedure call or argument.  I have been stepping through the message part, adding a line at a time so I do not understand this message.  I am simply going in circles.  Rather than use a query which had unknown datatypes, I made a table where all the types are text so I would not have to worry about numbers.  the data is only sent and is cleared to an archive.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
strMessage = strMessage & rst("BR_NMR") & Space(20 - Len(rst("BR_NMR"))) _
    & "," & rst("OFCR_CD") & Space(20 - Len(rst("OFCR_CD"))) & "," & rst("PLAN_NBR") & Space(20 - Len(rst("PLAN_NBR"))) _
    & "," & rst("DAYS_OPEN_CNT") & Space(20 - Len(rst("DAYS_OPEN_CNT"))) & "," & rst("APPL_TYP_CD") & Space(20 - Len(rst("APPL_TYP_CD"))) _
    & "," & rst("ACCT_NBR") & Space(20 - Len(Nz(rst("ACCT_NBR"), 0))) _
    & "," & rst("REL_CD") & Space(20 - Len(Nz(rst("REL_CD"), 0))) _
    & "," & rst("NM_LINE_1") & Space(20 - Len(Nz(rst("NM_LINE_1"), 0)))
'    & "," & rst("NM_LINE_1") & Space(20 - Len(IIf(Nz(rst("NM_LINE_1")), 1, rst("NM_LINE_1")))) _
'   & "," & rst("NM_LINE_2") & Space(20 - Len(IIf(Nz(rst("NM_LINE_2")), 1, rst("NM_LINE_2")))) _
'    & "," & rst("NM_LINE_3") & Space(20 - Len(IIf(Nz(rst("NM_LINE_3")), 1, rst("NM_LINE_3")))) _
'    & "," & rst("TAX_ID_NBR") & Space(20 - Len(IIf(Nz(rst("TAX_ID_NBR")), 1, rst("TAX_ID_NBR")))) _
'    & "," & rst("CIF_NBR") & Space(20 - Len(IIf(Nz(rst("CIF_NBR")), 1, rst("CIF_NBR")))) & vbCrLf _
[+][-]10/29/08 12:57 PM, ID: 22834956Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/29/08 01:00 PM, ID: 22834978Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/29/08 01:07 PM, ID: 22835054Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/29/08 01:10 PM, ID: 22835086Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/29/08 01:11 PM, ID: 22835103Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/29/08 01:12 PM, ID: 22835106Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/29/08 01:13 PM, ID: 22835123Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/29/08 01:23 PM, ID: 22835219Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/29/08 01:27 PM, ID: 22835275Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/29/08 01:29 PM, ID: 22835304Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/29/08 01:32 PM, ID: 22835339Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/29/08 01:33 PM, ID: 22835356Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/29/08 01:37 PM, ID: 22835392Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/29/08 01:40 PM, ID: 22835426Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/29/08 01:42 PM, ID: 22835460Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/29/08 01:43 PM, ID: 22835471Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Microsoft Development, Microsoft Programming, Microsoft Access Database
Tags: VBA
Sign Up Now!
Solution Provided By: JDettman
Participating Experts: 2
Solution Grade: A
 
[+][-]10/29/08 01:54 PM, ID: 22835579Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/29/08 01:57 PM, ID: 22835615Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/29/08 02:01 PM, ID: 22835658Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/29/08 02:08 PM, ID: 22835731Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/29/08 02:38 PM, ID: 22836011Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/29/08 04:41 PM, ID: 22836895Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/31/08 06:52 AM, ID: 22850027Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/31/08 06:59 AM, ID: 22850083Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_2_20070628