Sub MigrateImages()
Dim MyDB As Database
Dim MyRcd As DAO.Recordset
Dim strsql As String
Set MyDB = CurrentDb
strsql = _
"Select" & vbcrlf & _
" Image" & vbcrlf & _
", Name" & vbcrlf & _
"FROM" & vbcrlf & _
" tblImages"
Set MyRcd = MyDB.OpenRecordset(strsql, dbOpenDynaset)
If (Not (MyRcd.BOF And MyRcd.EOF)) Then
MyRcd.MoveFirst
While (Not MyRcd.EOF)
<Code to export images goes here>
Wend
End If
End Sub
|