First and foremost, thanks for taking the time to check out my thread. What I have is a "volunteers database", which stores info on individuals and organizations who volunteer at the local homeless shelter. They receive their "volunteer applications" via email from their website, which doesn't support server side scripting.
What I've done is:
-Setup rules in Outlook 2013 to move these emails to a folder in the Inbox.
-Linked MS Access 2013 to said folder.
-Queried pertinent data.
-Created form and set the query as it's data source.
This is the way the emails are stored in the database:
The field name is Contents.
Data Type: Long Text
Text Format: Plain Text
I'm attempting to "clean this up" so that I can append the information to [another table]:
Name would be parsed to [FName] and [LName], respectively.
Phone number to [PNumber]
Address to [Address], [City], [State], and [Zip]
and so on and so forth.
This is the code I have, thus far:
The problem is that I'm not getting any output with "Debug.Print".
My question is: How do I go about printing (Debug.Print var(i) ) to either "Me.Contents" or an unbound text box?
What I've done is:
-Setup rules in Outlook 2013 to move these emails to a folder in the Inbox.
-Linked MS Access 2013 to said folder.
-Queried pertinent data.
-Created form and set the query as it's data source.
This is the way the emails are stored in the database:
The field name is Contents.
Data Type: Long Text
Text Format: Plain Text
Code:
You've just received a new submission to your VOLUNTEER FORM.
Submitted Information:
Name
John Doe
Phone Number
555 - 555 - 5555
Address
1510 Lovely LN, Apt 206
Dirty Myrtle, SC United States 29577
Email
volunteersemail@gmail.com
Church Or Organization Affiliation
Not Affiliated
How would you like to volunteer? (choose all that apply).Kitchen/Food Prep
1
How would you like to volunteer? (choose all that apply).Maintenance
1
How would you like to volunteer? (choose all that apply).Mentoring
1
How would you like to volunteer? (choose all that apply).Job Skills
1
How would you like to volunteer? (choose all that apply).Front Desk Receptionist
1
How would you like to volunteer? (choose all that apply).Painting
1
Name would be parsed to [FName] and [LName], respectively.
Phone number to [PNumber]
Address to [Address], [City], [State], and [Zip]
and so on and so forth.
This is the code I have, thus far:
Code:
Private Sub cmdCleanUp_Click()
Dim Contents As String
Contents = Me.Contents
Dim i As Integer
Dim var
Contents = Replace(Contents, "You've just received a new submission to your VOLUNTEER FORM ", "")
Contents = Replace(Contents, "<link> .", "")
Contents = Replace(Contents, "How would you like to volunteer? (choose all that apply).", "")
var = Split(Contents, vbCrLf & vbCrLf)
For i = 0 To UBound(var)
Debug.Print var(i)
Next
End Sub
The problem is that I'm not getting any output with "Debug.Print".
My question is: How do I go about printing (Debug.Print var(i) ) to either "Me.Contents" or an unbound text box?
Last edited: