matthewnsarah07
Registered User.
- Local time
- Yesterday, 17:53
- Joined
- Feb 19, 2008
- Messages
- 192
Code:
Private Sub Command19_Click()
Dim strProcedure As String
Select Case Me.ppec
Case Is = "1"
strProcedure = "updateppe"
DoCmd.OpenStoredProcedure strProcedure
Case Else
MsgBox "No access granted"
End Select
End Sub
I am using the above code to execute a macro when the value of field [ppec] is 1 - the macro is called updateppe - I am just getting an error can't find that object name, how do I execute this macro in this code?
Thanks for your help