M
Mark
I know this should be easy, but.....
I have a command button that when clicked displays information about a
particular patron.
here is a copy of the code that I'm using right now:
---
Private Sub View_Add_Incidents_Click()
On Error GoTo Err_View_Add_Incidents_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmIncident"
stLinkCriteria = "[PatronID]=" & Me![PatronID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_View_Add_Incidents_Click:
Exit Sub
Err_View_Add_Incidents_Click:
MsgBox Err.Description
Resume Exit_View_Add_Incidents_Click
End Sub
---
I would like to be able to display a message if there is no information for
that patron. Any help would be appreciated.
Thanks,
Mark
I have a command button that when clicked displays information about a
particular patron.
here is a copy of the code that I'm using right now:
---
Private Sub View_Add_Incidents_Click()
On Error GoTo Err_View_Add_Incidents_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmIncident"
stLinkCriteria = "[PatronID]=" & Me![PatronID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_View_Add_Incidents_Click:
Exit Sub
Err_View_Add_Incidents_Click:
MsgBox Err.Description
Resume Exit_View_Add_Incidents_Click
End Sub
---
I would like to be able to display a message if there is no information for
that patron. Any help would be appreciated.
Thanks,
Mark