Solved

multiple database access

Posted on 1998-12-16
2
155 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
2 Comments
 
LVL 1

Accepted Solution

by:
visual_b earned 100 total points
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

728 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now