Opening access database

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I've got the following problem: In my application I want to open an access database (not with ADO or so, just as if the user would have dblclicked on it), therefore I want to use the .net equivalent for the old-style ShellExecuteEx function.
This shouldn't be a problem, so far. Now, the second task is to automatically open a specific form in the database on its startup. How can this be done? (suggestion: is there any command line arg that does the trick?)

Thanks for any help
mosquitooth
 
* "=?Utf-8?B?bW9zcXVpdG9vdGg=?= said:
I've got the following problem: In my application I want to open an
access database (not with ADO or so, just as if the user would have
dblclicked on it), therefore I want to use the .net equivalent for the
old-style ShellExecuteEx function.

This shouldn't be a problem, so far. Now, the second task is to
automatically open a specific form in the database on its startup. How
can this be done? (suggestion: is there any command line arg that does
the trick?)

AFAIK no. Maybe you can do what you want to do with Access automation
(Access VBA).
 
Cor,

* "Cor said:
I thought here is asked for that nice shell start of you.

I think the OP knows how to open the file but he is looking for a
solution for activating a form at startup.
 
¤ Hi
¤
¤ I've got the following problem: In my application I want to open an access database (not with ADO or so, just as if the user would have dblclicked on it), therefore I want to use the .net equivalent for the old-style ShellExecuteEx function.
¤ This shouldn't be a problem, so far. Now, the second task is to automatically open a specific form in the database on its startup. How can this be done? (suggestion: is there any command line arg that does the trick?)
¤

Simply specify the startup Form in your Access database setup (Tools...Startup...).

You can also use the Microsoft Access command line options (/x macro):

http://msdn.microsoft.com/library/d...2000/html/acrefStartUpCommandLineOptionsS.asp


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
Back
Top