fiogf49gjkf0d I have used these combinations from a nav bar button to open to a specific sub tab. Although it opens to the tab, it displays the data from the last contact it was on vs. the current contact. I have tried every example I have found to open and refresh the form. Even F5 does not refresh the data. I have to switch to a differnt tab and back or Ctrl+F5 to display the data. How can I get it to refresh with the current data or close the tab before opening it again with the current contacts records?
Application.MainViews.AddEx "System:Contact Details", 1, True, 1, Application.BasicFunctions.CurrentContactID, Application.BasicFunctions.CurrentGroupID 'DNL
Application.MainViews.ActiveView.Tabs.Add("Contact:HT Entry")
Application.MainViews.ActiveView.Tabs.ActiveTab = Application.MainViews.ActiveView.Tabs.Add("Contact:HT Entry") 'DNL
Application.DoEvents
Dim objForm
objForm = Application.Forms.Item ("Contact:HT Entry")
objForm.Refresh
Application.BasicFunctions.RefreshMainView
Set objForm = Nothing
|