I have read [post=”565662″]Post 565662[/post], and seen the link that points to MS KB :How to Open multiple instances of the same form
The examples all seem to involve opening a second instance from the form itself. That is not what I have been asked to do.
From a continuous form, the user selects a record, then clicks a button to open a second form at the selected record.
If Not IsNull(Me.PracticeID) Then stLinkCriteria = "[PracticeID]=" & Me![PracticeID] End If stDocName = "frmPracticeDetails" DoCmd.OpenForm stDocName, , , stLinkCriteria
They would like to be able to leave frmPracticeDetails open, return (somehow) to the list form, select another Practice and view its details.
Returning to the continuous form, selecting a different record and clicking the button a second time does not work (I did not expect it to). frmPracticeDetails then shows the details of the second practice, but the first practice is now gone.
I tried this.
If Not isLoaded(stDocName) Then DoCmd.OpenForm stDocName, , , stLinkCriteria Else Dim frmPracticeDetailsx As Form Set frmPracticeDetailsx = New Form_frmPracticeDetails frmPracticeDetailsx.Filter = stLinkCriteria frmPracticeDetailsx.FilterOn = True frmPracticeDetailsx.SetFocus End If
If the form is already open when the button is clicked, a form flashes up briefly but closes immediately and I am left at the list.
-
[*]Can you do what I want?
[*] If so does it involve something much more complicated than what I have tried above?