Hi,
Create a new vb standard exe project. Put a command button on the form and paste the follwing code. Remeber to set the references.
------------------------------------------------------------
Option Explicit
'Reference to 'Mircosoft word 9.0 object library'
Dim w As Word.Application
'Reference to 'MS ADO Ext. 2.6 for DDL and Sequrity'
Dim oCat As ADOX.Catalog
'Reference to Microsoft ActiveX Data Objects 2.5 library
Dim Conn As ADODB.Connection, Rst As ADODB.Recordset
Private Sub Command1_Click()
Dim OutPutData() As Byte, OutFile As Byte
Set Rst = New Recordset
Rst.Open "SELECT TOP 1 MyBlob FROM tblTestBlob", "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = c:\test.mdb;"
OutPutData = Rst.Fields("MyBlob"

.GetChunk(Rst.Fields("MyBlob"

.ActualSize) 'get everything in one chunk
Rst.Close
Set Rst = Nothing
'OutPut data to new file
If Dir("c:\out.doc"

<> "" Then Kill "c:\out.doc"
OutFile = FreeFile
Open "c:\out.doc" For Binary Access Write As #OutFile
Put #OutFile, , OutPutData
Close #OutFile
MsgBox "Document retrieved from db written to c:\out.doc"
End Sub
Private Sub Form_Load()
Dim strCon As String, InFile As Byte
Dim InputData() As Byte
'Create database
If Dir("c:\test.mdb"

<> "" Then Kill "c:\test.mdb"
Set oCat = New ADOX.Catalog
strCon = oCat.Create("Provider=Microsoft.Jet.OLEDB.4.0;Data Source = c:\test.mdb;"

Set oCat = Nothing
'Connection
Set Conn = New ADODB.Connection
Conn.Open strCon
Conn.Execute "CREATE TABLE tblTestBlob(tblTestBlobID COUNTER CONSTRAINT PK_TestBlob PRIMARY KEY, MyBlob LONGBINARY)"
'Make Word document
Set w = New Word.Application
w.Documents.Add
w.ActiveDocument.Content.InsertBefore "My word document"
w.ActiveDocument.SaveAs "c:\test.doc"
w.ActiveDocument.Close
Set w = Nothing
'Open file
InFile = FreeFile
Open "c:\test.doc" For Binary Access Read As #InFile
ReDim InputData(LOF(InFile))
Get #InFile, , InputData 'retrieve data
Close #InFile
'Open recordset
Set Rst = New ADODB.Recordset
Rst.Open "tblTestBlob", Conn, adOpenKeyset, adLockOptimistic, adCmdTable
Rst.AddNew 'new row
Rst.Fields("MyBlob"

.AppendChunk InputData
Rst.Update
Rst.Close
Set Rst = Nothing
Conn.Close
Set Conn = Nothing
End Sub
------------------------------------------------------------ Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'