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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MDB created via vba problem

Status
Not open for further replies.

TrollBro

Technical User
Sep 4, 2004
98
US
I can't figure this out - I auto-create and mdb in A2K using a vba routine and transfer tables to populate it with about 8 tables. Size is 187 meg. mdb seems file - data looks ok etc. when I zip it using winzip it actually INCREASES the zipped file size slightly. Anyone have any ideas or seen this before? Thanks!
 
WinZip can only reduce the size if it can find some redundancy to remove. It then has to add its own admin overhead. If you're staring with a file that has no recognizable patterns in it then Winzip can't find any way of reducing its size and you'll get a zipped file holding the original data plus the WinZip overhead.

I've seen it with things like graphics files that are already in a compressed format but not with an mdb. Usually they compress pretty well.

Geoff Franklin
 
TrollBro

Since you do that with code, include a compact & repair procedure (check in help what compact & repair does) without encryption. Then zip it. If you use encryption zipping wont do any good.
 
THANKS FOR THE IDEAS - you pointed me in the right direction and whaddaya know - dbEncrypt was specified in my code.

Set dbsNew = wspDefault.CreateDatabase(strDatabase, dbLangGeneral, dbEncrypt)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top