Hi Gina,
It's not personal, but there was a misunderstanding. Of course if I am
logging in, Access knows who it is. But I think it's irrelevant in this case.
I think I can be logged in as another user, the database can be closed or
even Access can be closed and automated export from Outlook should run. On
the other side it is an attempt to add data into the database, so Access
should know, if the procedure is authorized or not. There is an automatically
generated text in the subject of the e-mail. In my case it is
AccessDataCollection:{D0856DAB-6BC9-4C9B-97C1-C8F92A758F27}. I think there is
an information implemented in this text who created the e-mail message and
therefore you don't need to log in. But maybe I'm wrong.
Here are my answers to your questions:
1. Excluding the two mandatory references, here is a list of my libraries in
descending priority:
- OLE Automation
- MS ActiveX Data Objects 2.1 Library
- MS MAPI Controls 6.0
- MS ADO Ext. 6.0 for DDL and Security
- MS Office 12.0 Object Library
- MS Office Web Components 11.0
- MS DAO 3.6 Object Library
Every library seems to be OK. I tried to change MS ActiveX Data Objects 2.1
Library into MS ActiveX Data Objects 6.0 Library and also to add MS Outlook
12.0 Object Library, but the same error occured. It's logical, because
collecting data in Outlook doesn't run through OLE Automation, but through
XML.
2. Yes, I can add the data manually.
3. No, I haven't tried, but I think it's irrelevant for me, because I want
to be a person who will control collecting data process. The second reason is
nobody else in our company has admin permission. When I was testing the
procedure, I sent the e-mail to myself, then replied, filled in the form and
sent the e-mail back to me. I have also tried to send the e-mail to my
colleague. He replied, filled in the form and sent it to me. The same error
occured. I think it's logical because both e-mails arrived in the same folder.
4. I want to carry out a survey how the auditees are satisfied with the
auditors. I have a table called tblIASatisfaction in my database. I created
the e-mail based on this table. So the users will only add new records into
this table. The procedure should run through Outlook. I tried both
possibilities - Access open and Access closed - with no success.
Here are my two additional comments:
5. The application is digitally signed.
6. When I'm changing VBA code and simultaneously I'm trying to export the
data from Outlook manually, the following error message occurs:
The user David brought in the database into the state which disables opening
or locking the database.
Thank you very much for your interest.
David