473,385 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Opening access database

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
Nov 20 '05 #1
4 1198
* "=?Utf-8?B?bW9zcXVpdG9vdGg=?=" <an*******@discussions.microsoft.com> scripsit:
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).

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
Cor
Hi Herfried,

I thought here is asked for that nice shell start of you.

Cor
Nov 20 '05 #3
Cor,

* "Cor" <no*@non.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
On Sun, 1 Feb 2004 03:16:07 -0800, "mosquitooth" <an*******@discussions.microsoft.com> wrote:

¤ 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/de...neOptionsS.asp
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Graham Taylor | last post by:
I've tried posting this in the 'microsoft.public.access' but I will post it here also, as I think it might be the webserver which is causing my problem. --------- I have an Access 2003 database...
10
by: MHenry | last post by:
Hi, We were going merrily along for 6 years using this database to record all client checks that came into our office, including information about what the checks were for. Suddenly, network...
6
by: Jan Janssen | last post by:
Hi there I'm currently creating a program (VB .Net 2003) in which I can create MS Access databases. It took me a while to figure out how to create such databases, but I'm still missing a few...
1
by: CJJ | last post by:
hi Folks, I am opening my access database file (Access 2003) from a C# application. The connection string specifies mode=Share Exclusive The intent is that the application have exclusive...
2
by: Michel | last post by:
Hi, I need to know if there is anyway of opening a database only for reading data, is an Access database, the problem is that if the file is open, the connection fails, saying that the file is...
2
by: jritacco | last post by:
I have a user that is somehow managing to open multiple copies of a single Access database. We are using Access 2003 and everything I have tried makes it IMPOSSIBLE to open the same database more...
1
by: kkrizl | last post by:
I've tried to research this problem, and I haven't been able to find any references to it. Probably because I shouldn't be doing it, but it was working, and now it's not. I'm trying to develop a...
5
by: AricC | last post by:
Hey errbody! Can we get rid of the window below when the DB is opened? It's annoying. http://jtshouseopain.com/dbopenwindow.bmp Thanks, Aric
6
by: qwerty9988 | last post by:
I have an INTRAnet web application and the users want to add a URL link to an access database that they use. They do not want to put the access database on the web, they just want to be able to open...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.