I’m trying to set up a pop up window for quick viewing by double clicking a listbox value. I’m having trouble finding the selected value (Primary Key) and feeding it to the popup form. In the bolded code below "output_window" is the listbox.
Error: Property let procedure not defined and property get procedure did not get a value.
Private Sub outPut_Window_DblClick(Cancel As Integer)
On Error GoTo Err_btnReviewPopUP_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Occ_Popup"
stLinkCriteria = "[Occ_ID]=" & Me!outPut_Window![Occ_ID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_btnReviewPopUP_Click:
Exit Sub
Err_btnReviewPopUP_Click:
MsgBox Err.Description
Resume Exit_btnReviewPopUP_Click
End Sub
Any help is greatly appreciated, Thanks!!
Error: Property let procedure not defined and property get procedure did not get a value.
Private Sub outPut_Window_DblClick(Cancel As Integer)
On Error GoTo Err_btnReviewPopUP_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Occ_Popup"
stLinkCriteria = "[Occ_ID]=" & Me!outPut_Window![Occ_ID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_btnReviewPopUP_Click:
Exit Sub
Err_btnReviewPopUP_Click:
MsgBox Err.Description
Resume Exit_btnReviewPopUP_Click
End Sub
Any help is greatly appreciated, Thanks!!
Last edited: