My problem comes while trying to run a Microsoft Access Macro Shortcut from VB. I've done it before, and I'm not sure what the problem is this time. I'm using the Shell("C:\macro.mam" command and it doesn't seem to recognize/find the "mam" file. I've tried using a small DOS batch file to call the .mam file, but when the batch file is run, the macro will not let me close out of the database because the macro is still open in the DOS batch file.
If there is a better way to open a "mam" file from VB, I would love to know it. It's frustrating because I've gotten the files to work before. If I'm using the wrong criteria in the "Shell" command, please let me know. I've tried doing the intVal = Shell("C:\macro.mam" and that doesn't seem to work either.
If there is a better way to open a "mam" file from VB, I would love to know it. It's frustrating because I've gotten the files to work before. If I'm using the wrong criteria in the "Shell" command, please let me know. I've tried doing the intVal = Shell("C:\macro.mam" and that doesn't seem to work either.