Well, I got it to work, but there's still one problem. When the following code is run the entire seach dialog is cleared. Is there a way to prevent this?Const imSearchDocumentsOnly = 2Const imSearchEmailOnly = 1Const imSearchEmailOrDocuments = 0Sub SearchDlg_OnInitDialog(dlg) Dim searchparams Dim MANDMS Set MANDMS = dlg.NRTDMS Set searchparams = dlg.IManSearchParameters If searchparams Is Nothing Then Set searchparams = MANDMS.CreateProfileSearchParameters() End If If Not(searchparams Is Nothing) Then searchparams.SearchEmail = imSearchDocumentsOnly dlg.IManSearchParameters = searchparams End IfEnd Sub