Outlook View Control disappears after viewing item 
Author Message
 Outlook View Control disappears after viewing item

Hi,

I am writing an Access application and have a form with
an OVC.

There are three buttons which switch views between inbox,
calendar and tasks.

This all works fine.

However, if I open an item in one of the views (say,
double click in the inbox to open an email) and
immediately close it, then the next time i change view
the OVC disappears.

Any ideas? OfficeXP SP2.

Heres the code:

Private Sub chkFilter_Click()
    If chkFilter.Value Then
        Me.viewControl.Restriction = "[Categories]
= 'CMS'"
    Else
        Me.viewControl.Restriction = ""
    End If
End Sub

Private Sub cmdCalendar_Click()
    Me.viewControl.Visible = False
    Me.viewControl.Folder = "Calendar"
    Me.viewControl.View = "Day/Week/Month"
    Me.viewControl.Visible = True
End Sub

Private Sub cmdInbox_Click()
    Me.viewControl.Visible = False
    Me.viewControl.Folder = "Inbox"
    Me.viewControl.View = "Messages with AutoPreview"
    Me.viewControl.Visible = True
End Sub

Private Sub cmdTasks_Click()
    Me.viewControl.Visible = False
    Me.viewControl.Folder = "Tasks"
    Me.viewControl.View = "Simple List"
    Me.viewControl.Visible = True
End Sub

Private Sub Form_Load()
    Me.viewControl.Folder = "Calendar"
    Me.viewControl.View = "Day/Week/Month"
    Me.viewControl.Width = 14900
    Me.viewControl.Height = 6200

    chkFilter_Click

    Me.viewControl.Visible = True

End Sub



Sat, 24 Sep 2005 17:42:04 GMT  
 Outlook View Control disappears after viewing item
Okay, switching this controls visibility does real bad
things for me. Instead I settled on putting three
controls onto an Acces Page control. Works nicely now.


Sun, 25 Sep 2005 19:55:28 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. outlook view control and views/filters

2. Changing the calendar view in a Outlook view control

3. Change view in Outlook View Control (OVC)

4. Selected item(s) in Outlook View Control

5. Determine the items selected in an Outlook View Control

6. List View Top Item in Large Icon View

7. Display Bitmaps in Sub Items and column Headers of List View During Report View

8. Customize default outlook Contacts View to display Images in the view

9. Outlook View Control in Outlook 2002

10. Outlook Object and/or Outlook View Control

11. Outlook View Control & Outlook XP

12. Outlook Object Model in Access + Outlook View Control

 

 
Powered by phpBB® Forum Software