Outlook View Control

  • Thread starter Thread starter Alan N via OfficeKB.com
  • Start date Start date
A

Alan N via OfficeKB.com

I am using the OVC on an Access form and would like to use command buttons to
change the view of the Calendar. i.e. Click the Month button and the OVC
changes to the Calendar Month view etc.

I can get it to view the Calendar but right now its just the last Calendar
view that Outlook used.

Any suggestions?
 
You'll have to set the ViewXML property for the View Control to the full XML
string that is slightly changed for each variation of the Day/Week/Month
view. I would save the different XML values to a file and read them into the
ViewXML property for every command button click. You can get these values
using Outlook Spy, or by calling the ActiveExplorer.CurrentView.XML property
once for every view variation.
 
Back
Top