The following lines return an "Invalid procedure call or argument" runtime error #5, and I have no idea why:
sShellPath = chr(34) & "c:\Windows\Notepad.exe " & sDestinationPath & chr(34)
dbl = Shell(sShellPath, vbMaximizedFocus)
sDestinationPath is a valid path/file, sShellPath is a string, Notepad is at the above path, and dbl is a double.
I also tried this referencing Wordpad, and the file at sDestinationPath is not read-only.
I'm using Windows XP SP2/Access XP.
Thanks in advance.