Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

multiple database access

Posted on 1998-12-16
2
Medium Priority
?
164 Views
Last Modified: 2010-05-03
How do I make several programs access one open database. I only know when there is one database and one program. i.e opening the database in that program.

I want a case whereby one program will be able to add records to the database whereas one only reads the records.
The simplest solution will do. I am using Visual Basic 4.0.
0
Comment
Question by:serameng
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
visual_b earned 200 total points
ID: 1450466
To open a database for read/Write access use:
Set dbWrite = wksmain.OpenDatabase("dbName.mdb", False)
To open a database for Read Only access use:
Set dbRead = wksmain.OpenDatabase("dbName.mdb", False,True)

is this what you need?
0
 

Author Comment

by:serameng
ID: 1450467
I am not sure if what you gave me is what I wanted. but i said I need, like 2 or more applications accessing the same database simultaneously or concurrently for both read and write. I hope I made myself clear.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question