cuetzpalin
Programmer
Hello,
I have a Parent Form with a ListView that lists multiple records. I figured out how to capture the Index of the record that's double clicked, but how do I get to pass to a pop-up form?
Here's my code:
Private Sub lvxCA_Data_List_DblClick()
Dim lvxObj As ListView
Set lvxObj = lvxCA_Data_List.Object
With lvxObj
iOCISeq = .SelectedItem
End With
stDocName = "frmTest"
DoCmd.OpenForm stDocName, acNormal, , , , , iOCISeq
End Sub
Please help! Also, how do ensure that the pop-up form stays modal and basically locks the user from going back to the parent unless they close the pop-up form?
The pop-up form is meant to be a data input form, basically displays a more detailed view of the record selected from the ListView.
Thanks!
I have a Parent Form with a ListView that lists multiple records. I figured out how to capture the Index of the record that's double clicked, but how do I get to pass to a pop-up form?
Here's my code:
Private Sub lvxCA_Data_List_DblClick()
Dim lvxObj As ListView
Set lvxObj = lvxCA_Data_List.Object
With lvxObj
iOCISeq = .SelectedItem
End With
stDocName = "frmTest"
DoCmd.OpenForm stDocName, acNormal, , , , , iOCISeq
End Sub
Please help! Also, how do ensure that the pop-up form stays modal and basically locks the user from going back to the parent unless they close the pop-up form?
The pop-up form is meant to be a data input form, basically displays a more detailed view of the record selected from the ListView.
Thanks!