I received some answers from the .net forum but I'm not sure if they are correct? Here was the original post... the form is above... Thanks for any help!
...."I'm a financial services rep with a minor in Computer Science so I got assigned the VB task of creating a new lead to app program to make our biz flow more efficient...
Unfortunately, I haven't used my CS skills since college graduation in 2002 so it was a lot of "on the job learning" on my own...
I came up with exactly what the boss wanted for the interface for the telemarketers... I can even have an email shot off to the underwriter upon the "submit button" command.
What I am having trouble with is including all of the info entered into the fields in the email to the underwriter... I tried to do a screenshot to make it easier on myself but it hasn't worked...
Any thoughts? Here is the interface and the code I employed to attach the screenshot to the emails but it doesn't seem to work . If a screenshot attachment is impossible in 6.5 I guess I can just attach field by field. "
Private Sub Image1_Click()
End Sub
Private Sub CommandButton1_Click()
' Email Message Details
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Ryan VanSciver just converted a Lead to App!!!"
objMessage.From = "pfsleadtoapp@gmail.com"
objMessage.To = "pfsleadtoapp@gmail.com"
objMessage.AddAttachment "C:\Documents and Settings\PUFF\Desktop\LeadApp.bmp"
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
Set objConfig = CreateObject("cdo.configuration")
Set Flds = objConfig.Fields
schema = "http://schemas.microsoft.com/cdo/configuration/"
Flds.Item(schema & "sendusing") = 2
Flds.Item(schema & "smtpserver") = "smtp.gmail.com"
Flds.Item(schema & "smtpserverport") = 465
Flds.Item(schema & "smtpauthenticate") = 1
Flds.Item(schema & "sendusername") = "pfslead@ymail.com" 'username and password changed for security
Flds.Item(schema & "sendpassword") = "hh"
Flds.Item(schema & "smtpusessl") = 1
Flds.Update
Set objMessage.Configuration = objConfig
objMessage.Send
Set objMessage = Nothing
End Sub
Private Sub Label1_Click()
End Sub
Private Sub Label2_Click()
End Sub
Private Sub Label22_Click()
End Sub
Private Sub Label23_Click()
End Sub
Private Sub Label8_Click()
End Sub
Private Sub Label9_Click()
End Sub
Private Sub OptionButton1_Click()
End Sub
Private Sub ListBox1_Click()
End Sub
Private Sub OptionButton10_Click()
End Sub
Private Sub OptionButton11_Click()
End Sub
Private Sub OptionButton16_Click()
End Sub
Private Sub OptionButton18_Click()
End Sub
Private Sub OptionButton19_Click()
End Sub
Private Sub OptionButton24_Click()
End Sub
Private Sub OptionButton4_Click()
End Sub
Private Sub OptionButton7_Click()
End Sub
Private Sub OptionButton8_Click()
End Sub
Private Sub OptionButton9_Click()
End Sub
Private Sub RateBox_Change()
End Sub
Private Sub SingleFamilyHome_Click()
End Sub
Private Sub SOURCE_Click()
End Sub
Private Sub TextBox10_Change()
End Sub
Private Sub TextBox37_Change()
End Sub
Private Sub TITLE_Click()
End Sub
Private Sub UserForm_Click()
End Sub
that's it! I just need the numeric text boxes to be #s only and I need to figure out a way to attach a screenshot of the form... right now its just set up to email a dummy bitmap file...
The other tweaks I wanted to include was to make sure that all fields were competed prior to the "submit" button working and having the currency and numeric boxes stuck as just that... rather than letting the text boxes be a free-for-all for whatever they feel like entering. I wanted to format the appropriate boxes for rates, numeric values, currency, etc but it's been 10 years and I can't remember???
Any help would be greatly appreciated!!! Thanks!"...


Reply With Quote

