I upgrade my Notes client from R5 to R6.0 today. The database is on R6 server. It works well with R5 client before. Now when I open my document I get “variable not contain an object” error message. I traced the errors and found that the CurrentDocument property of NotesUIWorkspace is empty. Here is the code behind the problem field: Set session = New notessession
Set workspace = New NotesUIWorkspace
Set uidoc = workspace.CurrentDocument
Set doc = uidoc.Document
Please help. Thank you in advance.