run macro error

Jaye7

Registered User.
Local time
Tomorrow, 04:58
Joined
Aug 19, 2014
Messages
205
I have tried calling my macro from a form commandbutton and it can not find the macro, the name of the macro is correct, I have pasted the macro into the form macros and then pasted it into a module but I still get the error that it can not find it.

Code:
 Private Sub Command29_Click()
DoCmd.RunMacro "testing1"
End Sub
 
What does the macro do? Why don't you convert it to code instead?
 
thanks, I just put a call script and it works fine,

Code:
call testing
 
Good to see... but there's really no point in mixing macros and VBA. With macros you can't error handle as much as you can in VBA.
 

Users who are viewing this thread

Back
Top Bottom