Ole table and MDB way too big

mmitchell

Registered User.
Local time
Today, 15:22
Joined
Jan 7, 2003
Messages
80
I have a one table database that contains just embedded MS Word files. It has about 1200 records and the files are about 20K each. The MDB (Access 97) is about 900 Meg after compacting. I know that when it reaches 1 Gig Access will complain (I had to break it out of another MDB into its own MDB).

Two questions:

1. Unless I missed some very large files when looking through the records, 1200 x 20K=24,000 KB which, by my math, is only 24 meg. Is there a known reason why this MDB is so large? I know that Access is not real efficient, but I did not think it was that bad.

2. I am moving to MS SQL 2000 and am thinking to save the MS Word files as files and just storing a link back to it, but here is my concern: The reason the files are embedded and not linked is because I can protect the file from being edited if it is embeded, by using Access to allow edits or not. If I link to them, how can I accomplish the same thing? That is, how can I make sure the Word files do not get modified by users?
 
Thanks,

Any idea how to get the emebed files out of the database, using code that is, I don't want to go thorugh all of them by hand.
 
Word Viewer

I had the same problem where I did not want the files to be edited. For that I used the Word Viewer.
( Wd97vw32.exe installed)
And the Call from Access would be.
Code:
Private Sub ShowDocument()
On Error Resume Next
Dim myLink As String

    DoCmd.Hourglass True
    myLink = "C:\Program Files\WordView\Wordview.exe\" & "Something.doc"
    Call Shell(myLink, 1)
    DoCmd.Hourglass False
    
End Sub
 
Yes, I have used the viewr before. I just might try that.

Now, if I can just get them out of the database and saved as files!
 

Users who are viewing this thread

Back
Top Bottom