I access the following code using a button on a form in Visual Studio, on running and selecting the button I get the following error message 'Runtime error 424: Object required', has anyone any clues as to what the problem maybe ??????
Private Sub Command1_Click()
sTo = "firstname.lastname@example.org"
sFrom = "email@example.com"
sSubject = "Insert here your subject text"
sTextBody = "Insert here your plain body text"
'Create the mail object
Set objMail = Server.CreateObject("CDO.Message")