Hi all, I'm just a newbe so forgive my ignorance. Does anyone know how I would code this to use in a public module (works fine in privet call)? I keep getting an error that I have misused a keyword when I use it in the public call.
Public Sub Cmd_Edit()
Dim iResponse As Integer
iResponse = MsgBox("Do you want to Edit Record ?", vbYesNo)
If iResponse = vbYes Then
Me.AllowEdits = Not Me.AllowEdits
End If
End Sub
Public Sub Cmd_Edit()
Dim iResponse As Integer
iResponse = MsgBox("Do you want to Edit Record ?", vbYesNo)
If iResponse = vbYes Then
Me.AllowEdits = Not Me.AllowEdits
End If
End Sub