473,385 Members | 1,740 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.

AUtomation ms Access VBA

hello all
I have one problem. I have lost 2 days with browsing but no possitive effect :(
Description:
I have database A - (dbA) and database B (dbB). I want from some form of dbA call procedure, which checks, other instance of MS access with dbB is running...if not, then creates new instance and opens this database. And the same also in reverese: run check from dbB if dbA is opened on current computer and if not, opens it.
I have no idea how to do this... i have spent days with AUTIMATION and access.application object and methods GetObject(),CreateObject...Main problem is, that GetObject doesn't garantee which instance it chooses(in best case it returns needed dbB from dbA or dbA from dbB)... Maibe some cooperation of API and Automation can handle this , i am not sure...Please, help me if you can...Zdeno
Dec 10 '09 #1
5 1415
PianoMan64
374 Expert 256MB
What in each database are you checking to see is available in each database or are you wanting to simply check if they are running on your local machine?
Dec 10 '09 #2
I would like to see, if there is the seconfd database running...from dbA see if dbB is running and from dbB if dbA is running
Dec 10 '09 #3
PianoMan64
374 Expert 256MB
So my next question is how do you want to deal with when each database exist but is not running, do you want to blank out the whole database and start over again and create the database and table, queries, forms and whatever else your talking about in the another copy of the database?

I would really like to see what you're really talking about between these two independent databases. I don't understand what is in each of them and why they have to have this co-dependency between the two.

Thanks,

Joe P.
Dec 11 '09 #4
Hi. Thanks for your interest..so, I will try to explain it as much as I can....This utility is needed for my job. There is one workplace in plant, where tvo different databases ase needed for operator's work - he is inserting data via barcode. So, one database is something like warehouse system, another one like maintenance database. There is no datarelation between them, there are different entities without any relation inside them...So it is solved like 2 different applications...I just want to call start or focusing of one database from the other, when operator presses for example F7 key.F7 key will be used like user's input to activate another database /maximize its mainscreen if it is running or start it if it was not started yet/. I just want to eliminate tasbar icon clicking which can be in real production in plant considered like delay of production...this is not my idea but idea of my supervisor. I hope you understand...
Dec 11 '09 #5
PianoMan64
374 Expert 256MB
Hey Skywalker,

Thanks for the explanation.

Well, first off, if you are trying to launch an application from another computer, that's just not supported over a network period. This is something that has to be launched at the workstation that is going to be hosting the application.

As for the backend of things, I would REALLY suggest that you break apart the Frontend and Backend of the database so the tables are located in a central Network Share location where both users would have Full rights to the folder.

I would also REALLY suggest, that you merge all the tables from the two databases that you're talking about into one backend database in this network share location, that way if you're running the front end from anywhere on the network, you would have access to the data that you're wanting to access.

One thing I did want to make clear about the MS Access databases is that you are able to connect to another MS Access database simply by using the LINK OBDC feature within Windows.

From your explanation, you simply don't need either of the two programs running simultaneously unless the other user is entering data into his/her respective front end application.

You can simply just run your front end application and connect to the network share and when the other user connects to the network share when they log in, they would put their data in their respective tables, and you can use that data to do what you need to do with your respective tables in the centralize network share.

If you need more detailed explanation, please let me know,

Thanks,

Joe P.
Dec 12 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: qwweeeit | last post by:
Hi all, Elliot Temple on the 1 June wrote: > How do I make Python press a button on a webpage? I looked at > urllib, but I only see how to open a URL with that. I searched > google but no...
1
by: Kent Eilers | last post by:
I'm learning automation basics here with a Access-Word mail merge. Specifically I want to obtain a reference to the Word error object....using Access as an automation client. Is this possible? ...
17
by: Ange T | last post by:
Hi there, I'm having pain with the VB behind an Access form. The form is used to create reports in Excel based on the details entered in the form. This has always worked without error on my...
25
by: Neil Ginsberg | last post by:
I have a strange situation with my Access 2000 database. I have code in the database which has worked fine for years, and now all of a sudden doesn't work fine on one or two of my client's...
12
by: Cheval | last post by:
Has anyone had any problems with inter-office automation between MS Word and MS Access in Office 2003? I have recently installed office 2003 in a new folder and have left the older office 2000...
1
by: Jimmer | last post by:
I've got what should be an easy automation problem, but the solution simply isn't coming to me. I've got several public variables set up for automation as follows: Public gappExcel As...
4
by: David LACASSAGNE | last post by:
Is it possible to set a password to protect the code of an Access VBA project by automation (I already know how to to it manually)? David.
21
by: Neil | last post by:
Is there a way to trap an error generated in another app that is controlled via automation? I have an Access 2000 app that opens Word 2000 and proceeds to open a series of documents and, in each...
16
by: RichardP | last post by:
Hi there everyone - I'm new to this forum. I am having an issue when running an application from an instance of Access which has been started through automation (early or late bound, makes no...
4
by: Keith Wilby | last post by:
How controllable from Access VBA is Excel? I'm currently using automation to dump 2 columns of data into an Excel spreadsheet so that the end user can create a line graph based on it. Could the...
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: 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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.