Hi All,Hope someone can help with this.
From a form in Database_A, which has a field called ServerName, there is also a button that should link to the Statistics\System view in the statrep.nsf located on the server held in ServerName and display the latest document from that view as the current uidoc.
The code I’ve got in the button is as follows:
…declarations
Set StatsDB = session.GetDatabase(temp, “statrep.nsf”)
Set StatsView_6 = StatsDB.GetView(“($Statistics)”)
Set Statdoc = StatsView_6.GetFirstDocument
Set StatUIdoc = w.EditDocument (False, Statdoc, False,False)
Seems simple enough? But the problem is that it returns the correct statrep document to the uidoc that has the Form of “Statistics Report”, in the document properties it shows the correct fields and values, but the form/document displaying as the current uidoc is the Events form, and it’s blank!
Any help would be gratefully appreciated.
Thanks
Charlotte