You can usually use the Shell( ) function or the ShellExecute( ) Windows API
function for DOS commands, but it depends upon the command and the OS. For
an example that works in all versions of Windows:
Dim RetVal As Double
RetVal = Shell("C:\WINDOWS\CALC.EXE", vbNormalFocus) ' Runs Calculator.
You can find an example of how to use the ShellExecute( ) function on this
Web page:
http://www.mvps.org/access/api/api0018.htm
HTH.
Gunny
See
http://www.QBuilt.com for all your database needs.
See
http://www.Access.QBuilt.com for Microsoft Access tips.
(Any human can read my reply E-mail address and should alter it so that a
message will be forwarded to me. Spammers are free to use my UNALTERED
reply E-mail address. I will *never* get those messages!)