D
DagL
Hello!
I am doing some research on using the CDO object. I found some code that
should give me the possibility to create a calender message for an
appointment. But, I get an error that I do not know why I get. I have googled
the error, but it seems to be an error caused by wrong datatypes in updating
databases. I am not even close to an database table, so this cannot be the
case here. I have also tried to comment out the lines of setting data, if it
could be wrong. Especially setting of date and time. But, this has had no
effect.
This is the code:
Dim objAppt As New Appointment
Dim objReq As New CalendarMessage
objAppt.Subject = "MEC 99"
objAppt.StartTime = "10/4/99 1:00PM"
objAppt.EndTime = "10/4/99 2:00PM"
objAppt.Attendees.Add ("(e-mail address removed)")
Set objReq = objAppt.CreateRequest
objReq.Message.Send
The error occurs when executing the line "Set objReq = objAppt.CreateRequest"
The full error code is:
Run-time error '-2147217887(80040e21)':
Multiple-step OLE DB operation generated errors. Check each OLE DB status
value, if avaliable. No work was done
I use MS Access 2007, and the CDO component is in the file CDOEX.DLL.
I hope someone can give me a hint about what could be wrong.
Best regards
Dagl
I am doing some research on using the CDO object. I found some code that
should give me the possibility to create a calender message for an
appointment. But, I get an error that I do not know why I get. I have googled
the error, but it seems to be an error caused by wrong datatypes in updating
databases. I am not even close to an database table, so this cannot be the
case here. I have also tried to comment out the lines of setting data, if it
could be wrong. Especially setting of date and time. But, this has had no
effect.
This is the code:
Dim objAppt As New Appointment
Dim objReq As New CalendarMessage
objAppt.Subject = "MEC 99"
objAppt.StartTime = "10/4/99 1:00PM"
objAppt.EndTime = "10/4/99 2:00PM"
objAppt.Attendees.Add ("(e-mail address removed)")
Set objReq = objAppt.CreateRequest
objReq.Message.Send
The error occurs when executing the line "Set objReq = objAppt.CreateRequest"
The full error code is:
Run-time error '-2147217887(80040e21)':
Multiple-step OLE DB operation generated errors. Check each OLE DB status
value, if avaliable. No work was done
I use MS Access 2007, and the CDO component is in the file CDOEX.DLL.
I hope someone can give me a hint about what could be wrong.
Best regards
Dagl