A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

AppendChunk and clearing the binary field



 
 
Thread Tools Display Modes
  #1  
Old August 10th, 2004, 07:45 PM
ftec
external usenet poster
 
Posts: n/a
Default AppendChunk and clearing the binary field


Using Visual Basic 6 we are using:

MainRs.Fields(ColName).AppendChunk buffer
MainRs.Update

to append binary files to Access 97 and this works ok.

The problem is that when trying to empty the field with:

MainRs.Fields(ColName).AppendChunk ""
MainRs.Update

The field does empty and from Access I can
find the field truly empty, but the file size does
not decrease accordingly?

Thanks,

Johannes



  #2  
Old August 10th, 2004, 08:25 PM
Norman Yuan
external usenet poster
 
Posts: n/a
Default AppendChunk and clearing the binary field

Insert binary data into Access DB expand file size quickly (depending on the
binary file size, of course), the file size will not shrink when data is
deleted from database unless you do database compacting.

If lot of data is added to and deleted from the database very often, you
need to compact the database regularly.

"ftec" ftecatkolumbusfi wrote in message
...

Using Visual Basic 6 we are using:

MainRs.Fields(ColName).AppendChunk buffer
MainRs.Update

to append binary files to Access 97 and this works ok.

The problem is that when trying to empty the field with:

MainRs.Fields(ColName).AppendChunk ""
MainRs.Update

The field does empty and from Access I can
find the field truly empty, but the file size does
not decrease accordingly?

Thanks,

Johannes





  #3  
Old August 11th, 2004, 07:01 PM
ftec
external usenet poster
 
Posts: n/a
Default AppendChunk and clearing the binary field

Thanks!

"Norman Yuan" wrote in message
...
Insert binary data into Access DB expand file size quickly (depending on

the
binary file size, of course), the file size will not shrink when data is
deleted from database unless you do database compacting.

If lot of data is added to and deleted from the database very often, you
need to compact the database regularly.

"ftec" ftecatkolumbusfi wrote in message
...

Using Visual Basic 6 we are using:

MainRs.Fields(ColName).AppendChunk buffer
MainRs.Update

to append binary files to Access 97 and this works ok.

The problem is that when trying to empty the field with:

MainRs.Fields(ColName).AppendChunk ""
MainRs.Update

The field does empty and from Access I can
find the field truly empty, but the file size does
not decrease accordingly?

Thanks,

Johannes







 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:23 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.