Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I put database on CD-ROM for distribution ??

Status
Not open for further replies.

jackal63

MIS
May 22, 2001
67
CA
Is there anyway to put a usable database on a CD to give to users? I have to imaging that Access not being able to create an .ldb file in the same location as the .mdb file would cause an error.

Is there someway to not open the .ldb file or to specify that the .ldb file should open in a temp directory on C: ?

Any help on what the best course of action would be would be greatly appreciated.

 
There are a few things that you might like:

1. You can set a CD-ROM's autorun to run a batch file. There are a bunch of web sites on how to set this up, here is one: 2. The DOS/command-line-based ATTRIB command can reset the "Read Only" file attribute,
Code:
ATTRIB -R FILENAME.EXT
3. you can use the COPY command to copy your file to the local computer.


So this would look something like:

(RUN.BAT)

COPY YOURDB.MDB C:\TEMP\YOURDB.MDB
ATTRIB -R C:\TEMP\YOURDB.MDB
START C:\TEMP\YOURDB.MDB



...


but there's no way to "smoothly" open an MDB directly off of the CD-ROM, for most definitions of "smoothly".
 
Dear jackal63,

You can place an access mdb on a CD with no problems.
If you attempt to open the db, on the CD, Access will tell you that the DB is opened read-only. Now, you will be able to view tables and the like, but if you want to run any programs, well I can not tell you if Access will allow that.

Here is a tip that will let you open an Access file on CD.

1) Your users need to have Win zip installed.
2) Zip your Access mdb into a zip file.
3) Copy the resulting 'zip' file to the CD.
4) Now, when your users double click on the Zip file, it will open.
5) Finally, If your user then double clicks on the MDB file, in the Winzip file, Win Zip creates a copy of the mdb in the temp directory and runs fine.

The only disadvantage, when your user exits from this whole process, win zip will report that the db has changed and will ask if you want to save. Just answer no.

Good Luck,
Hap... [2thumbsup]

Access Developer [pc] Access based Add-on Solutions
Access Consultants forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top