473,385 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Open Outlook Calendar from Access?

Does this code look correct?

Private Sub cmdCalendar_Click()
Dim mOutlookApp As Outlook.Application
Dim mNameSpace As Outlook.NameSpace
Set mOutlookApp = New Outlook.Application
Set mNameSpace = mOutlookApp.GetNameSpace("MAPI")
mNameSpace.GetDefaultFolder(olFolderCalendar).Disp lay
Set mNameSpace = Nothing
Set mOutlookApp = Nothing
End Sub

Seems to work, but I don't know how to prevent the Folder List from being
displayed.

Is there a way to programmatically open Outlook without the Folder List
visible? Perhaps a macro that simply goes to View >> Folder List and
toggles the list?

Any suggestions or comments welcome!

Thanks!
Nov 12 '05 #1
1 6869
It's difficult to judge the "correctness" of code if you don't know
what it's intended to *do*. If the code accomplishes the goal, then
one could say it's okay. May not be ideal, but it's functional. At
the moment, I don't even know how to evaluate the code. What exactly
are you trying to do with the calendar? List the appointments? If
that's all you wanted to do, you could just create a linked table to
your Outlook calendar and be done with it. Then you can query it like
a native table. So take a step back and explain why you're trying to
do this or better what problem you're trying to solve. As stated,
there's not really a problem here...
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Sam | last post by:
My db looks after the hiring and lending of equipment, the form which books out equipment hired prints a signout sheet and automatically inserts an appointment into outlook advising the operator on...
1
by: Brian | last post by:
Greetings all! I've been searching and searching for about two hours looking for advise, help, tips for viewing an Outlook calendar (any view, month, week, day) from within Access. I've noticed...
1
by: Andy Davis | last post by:
Is it possible to link data from an Access database with Outlook? My client would like to be able to have a calendar similar to that in MS Outlook whereby they can type daily tasks on the calendar...
0
by: Jens | last post by:
Hi to all ! I have a question concerning the OUTLOOK interop. I managed to read users from the AD and put them in a treeview. The next step is to open the Calendar of a User in a new Window....
6
by: enak | last post by:
I need some help. I have a group of attorneys that need to be able to see the schedule of court dates. These dates are scheduled by the legal assistants. This is what I need: when a legal...
0
by: Srinivas | last post by:
Hi, whether it's possible to access client's Outlook calendar information from the ASP.net application? We want to develop an intranet application in which 1)the user who logs on to the intranet...
2
by: SK | last post by:
Could anyone please help me in reading outlook calendar using asp.net (vb)? Thanks
3
by: Mike Moore | last post by:
Our uses don't want to login to another application just to notate their leave schedules. Most of our users are already familiar with Outlook and like it. They don't want an office calendar, so we...
1
by: xian2 | last post by:
Hi, I wanted to create a calendar in Access that would call on data stored within tables in the database (dates in forms) and would show it visually on a calendar when the calendar was opened. I...
1
by: GraemeC | last post by:
I have a database that is used to book venues and assign people to those venues. The person doing the booking can send an appointment request from Access to an individuals Outlook calendar. This part...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.