ms-access


Run-time error '-2147221233(8004010f)': object not found - Access Database


I'm building a scheduling database for my office, and have it mostly finished. The last step is sending an automated meeting out for the schedule created each day. This email MUST come from a secondary email account/calendar shared by all members of my team. The code below runs just fine on my personal computer, but will not run on others even though they have access to the same email and calendar.
The error I get is this:
run-time error '-2147221233(8004010f)': The attempted operation failed. An object could not be found.
The line it's screwing up on is this: Set OLFolder = OLNamespace.Folders.Item("name#address.office.com")
Here's my code:
Private Sub sendacdcsched_Click()
'sends an email with a calendar appointment for the facility schedule.
DoCmd.Save 'saves the record first
Dim OutlookApp As Object
Dim Outlookmessage As Object
Dim scheduleACDC As String
Dim OLNamespace As Object
Dim OLFolder As Object
scheduleACDC = "Schedule for ACDC for " & Me.schedDate.Value
'Create Instance of Outlook
On Error Resume Next
Set OutlookApp = GetObject(Class:="Outlook.Application") 'Handles if Outlook is already open
Err.Clear
If OutlookApp Is Nothing Then Set OutlookApp = CreateObject(Class:="Outlook.Application") 'If not, open Outlook
On Error GoTo 0
Set OLNamespace = OutlookApp.getnamespace("MAPI")
Set OLFolder = OLNamespace.Folders.Item("name#address.office.com")
'Create a new email message
Set Outlookmessage = OLFolder.items.Add(1)
'Create Outlook email with attachment
On Error Resume Next
With Outlookmessage
.meetingstatus = 1 'makes it a meeting so you can add recipients
.start = Me.schedDate & " 8:00:00 AM"
.duration = 240 'in minutes
.To = "" 'Insert all emails addresses to be sent to here'
.subject = "ACDC" 'email subject line'
.Body = scheduleACDC
.Display 'displays email before you send it. If you wish to send without seeing it displayed use .send'
End With
On Error GoTo 0
End Sub

Related Links

How should I setup Shipping and Receiving tables for RDBMS?
Remove link for linked table in access
MSACCESS 2002 Linked Table Performance Really Slow
ms access 2010 update linked table with no primary key
Memo field value truncated to about 1000 characters when inserted from a .net typed dataset
Access (.MDB) deployment issue - Windows 7 - Installation with admin user?
MS Access 2007 popup form refuses to display/not accessible in design mode (but present in list of forms)
Count email type per customer id
Access Row Data to Columns Based Off ID
External Development and Testing of Microsoft Access VBA Code
Avoid busy wait in Access 2003
Extracting data from 60,000 Facebook ID's in less than 6 hours?
MS Access 2010: Linking to SharePoint list with Multiple Content Types -Read-Only
Save password for ODBC connection to MS SQL server from MS Access 2007
Average of a distinct count by day in Access
How to do calculation using many-to-many relationship in MS Access

Categories

HOME
pypi
layout
hashmap
iot
spagobi
setup-deployment
spring-cloud-stream
sqlite3
callback
cross-validation
vifm
modx-revolution
dtrace
flask-wtforms
workload-scheduler
windows-7-x64
pythonanywhere
flux
cloudhub
sox
wkwebview
jndi
h2db
webkitspeechrecognition
quote
lightswitch-2013
binary-data
framemaker
xmlreader
accelerate-framework
html5-fullscreen
ansible-playbook
webdriver-manager
splice
galen
g-code
nand2tetris
spring-security-kerberos
arena-simulation
businessworks
skeleton-css-boilerplate
chain-builder
hls.js
spring-cache
quartz-composer
watchconnectivity
bonobo
underscore.js-templating
mathematica-frontend
lua-5.1
master-slave
packagist
wapiti
system.management
ios8-today-widget
maven-tomcat-plugin
jmeter-maven-plugin
wireshark-dissector
embedded-code
drawbitmap
cakephp-3.1
system32
gadt
android-imagebutton
relocation
cctv
ms-project-server-2010
apc
google-cloud-save
dataservice
padarn
pushbackinputstream
xamlparseexception
interface-orientation
eventlistener
itmstransporter
multipage
ticoredatasync
semantic-diff
adk
django-tagging
self-extracting
ecl
xfbml
datareader
remember-me
html-input
dentrix
temporal-database
zend-decorators

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App