OLE Object column

J

John

I have two columns with the same data type of OLE Object. Is that possible to
update one using the other? The following gave me an error:

update table1 set colOLEObject = (select colOLEObject2 from table2 where
tableID = 1)

Thanks.
 
J

John Spencer (MVP)

You might try using the DLookup function.

update table1
set colOLEObject = DLookUp("colOLEObject2","table2","tableID = 1")

or This MIGHT work (UNTESTED)

Update Table1, Table2
SET colOLEObject = colOLEObject2
where Table2.tableID = 1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top