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

Appending Pictures [OLE Objects] from one table to another (2nd Try)

Status
Not open for further replies.

TOTCOM11

Programmer
Aug 5, 2003
199
US
Does anyone know if it is possible to append pictures from one table to another (OLE Objects)? I'm having a few difficulties and could use a pointer or two.

Thanks,
Chris
 
Just as an FYI: Here is the code I am currently trying to get to work. When I go into table view it looks like it would work correctly, the only problem is that the object doesn't ACTUALLY get copied over into my other table.

Code:
INSERT INTO tblPictureIndex ( PICTURE1 )
SELECT tblPictures.Picture
FROM tblPictures INNER JOIN tblPictureIndex ON tblPictures.PictureID = tblPictureIndex.PicID1
WHERE (((tblPictures.Picture) Is Not Null) AND ((tblPictureIndex.PicID1)=[tblPictures].[PictureID]));
 
And this ?
UPDATE tblPictureIndex I INNER JOIN tblPictures P ON I.PicID1=P.PictureID
SET I.PICTURE1=P.Picture
WHERE P.Picture Is Not Null;

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top