I've designed a simple form and a few reports in Access. I have designed it in Windows 7, with Access 2010, and when I open it on a Windows XP PC with Access runtime, I get the error "The expression on click you entered as the event property setting produced the following error". Can anyone help me with this one, please?
Private Sub cmdShoppingList_Click()
On Error GoTo Err_cmdShoppingList_Click
Dim stDocName As String
stDocName = "Shopping List"
DoCmd.OpenReport stDocName, acViewReport
Exit_cmdShoppingList_Click:
Exit Sub
Err_cmdShoppingList_Click:
MsgBox Err.Description
Resume Exit_cmdShoppingList_Click
End Sub
I hope to get the answer soon. Here is a pic of my error message: