Afternoon All...
I added a module to open a Dialog Box to import some files. Works great unless you hit cancel, then you get a runtime error 2501 "The RunCommand action was cancelled".
Here's the code:
Function GetPMSL()
DoCmd.RunCommand acCmdImport
End Function
I want to add an error handling messge and close the dialog box, but how?
Thanks.
ChiTownDiva
I added a module to open a Dialog Box to import some files. Works great unless you hit cancel, then you get a runtime error 2501 "The RunCommand action was cancelled".
Here's the code:
Function GetPMSL()
DoCmd.RunCommand acCmdImport
End Function
I want to add an error handling messge and close the dialog box, but how?
Thanks.
ChiTownDiva