Hello: I have a 2003 Access database that I updated to 2013. It contains a form that has a button that opens another form. But for some reason, it will only run once, until I close and reopen the database. The first form is based on a query. Then the button opens another form. Can anyone help with this? It is extremely frustrating and I don't know what else to do.
Private Sub OpenCatDetails_Click()
On Error GoTo Err_OpenCatDetails_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "FrmCat"
stLinkCriteria = "[Pound_Sheet_No]=" & "'" & Me![Pound_Sheet_No] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_OpenCatDetails_Click:
Exit Sub
Err_OpenCatDetails_Click:
MsgBox Err.Description
Resume Exit_OpenCatDetails_Click
End Sub
Sophia
Private Sub OpenCatDetails_Click()
On Error GoTo Err_OpenCatDetails_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "FrmCat"
stLinkCriteria = "[Pound_Sheet_No]=" & "'" & Me![Pound_Sheet_No] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_OpenCatDetails_Click:
Exit Sub
Err_OpenCatDetails_Click:
MsgBox Err.Description
Resume Exit_OpenCatDetails_Click
End Sub
Sophia