Hello,
I am trying to open a form from another form that uses the same record source table. I receive the following error message when clicking on the button.
<BEGIN ERROR>
The table ‘network_wo’ is already opened exclusively by another user, or it is already open through the user interface and cannot be manipulated programmatically.
<END ERROR>
Here is the code I am trying to use:
<BEGIN CODE>
Private Sub Network_Details_Click()
On Error GoTo Err_Network_Details_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = " network_details_form"
stLinkCriteria = "[ni_ID]=" & Me![ni_ID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Network_Details_Click:
Exit Sub
Err_Network_Details_Click:
MsgBox Err.description
Resume Exit_Network_Details_Click
End Sub
<END CODE>
Thank you sooo much!
I am trying to open a form from another form that uses the same record source table. I receive the following error message when clicking on the button.
<BEGIN ERROR>
The table ‘network_wo’ is already opened exclusively by another user, or it is already open through the user interface and cannot be manipulated programmatically.
<END ERROR>
Here is the code I am trying to use:
<BEGIN CODE>
Private Sub Network_Details_Click()
On Error GoTo Err_Network_Details_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = " network_details_form"
stLinkCriteria = "[ni_ID]=" & Me![ni_ID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Network_Details_Click:
Exit Sub
Err_Network_Details_Click:
MsgBox Err.description
Resume Exit_Network_Details_Click
End Sub
<END CODE>
Thank you sooo much!