It goes like this: You can read parameter from command line with

Command()

Something like this:

Private Sub Form_Load()
par = Command 'parameter into variable
Set db = DBEngine.OpenDatabase(par)
End Sub

You can execute your program with command line:

myexe.exe c:\database.mdb

Vairable par get value " c:\database.mdb". I thing that you'll have to remove [space].

That must work.

Ermin