T
TotallyConfused
I have inherited an Access db with the following code in a form. This code
references a macro. However, this db does not list any macros anywhere. Can
someone please explain this? Thank you.
Option Compare Database
Private Sub Command1_Click()
On Error GoTo Err_Command1_Click
Dim stDocName As String
stDocName = "DoSomething"
DoCmd.RunMacro stDocName
Exit_Command1_Click:
Exit Sub
Err_Command1_Click:
MsgBox "This information already in db."
Resume Exit_Command1_Click
End Sub
references a macro. However, this db does not list any macros anywhere. Can
someone please explain this? Thank you.
Option Compare Database
Private Sub Command1_Click()
On Error GoTo Err_Command1_Click
Dim stDocName As String
stDocName = "DoSomething"
DoCmd.RunMacro stDocName
Exit_Command1_Click:
Exit Sub
Err_Command1_Click:
MsgBox "This information already in db."
Resume Exit_Command1_Click
End Sub