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

Saving OLE embedded Excel sheet to OLE field in different table?

Status
Not open for further replies.

GordonLeeds

IS-IT--Management
Feb 5, 2002
21
US
Hello OLE gurus, hope you can help me out!

I have an Excel workbook embedded in an OLE field. A command button on the form opens the workbook invisibly, creates a new tab, uses a bunch of gnarly vba to populate & format it based on data in the existing tab, and stuffs the workbook back into the OLE field. All well and good.

I want to modify this process so that it does all of the above except that it creates the new tab in a NEW workbook object (I know how to do this part) and then embeds the result into an OLE field in a new record in a different Access table.

The only way I'm seeing so far is to use the acOLECreateEmbed action, but for that it seems I have to have the destination table's new record displaying on the form (or a subform, I suppose). If this is the only way, I think I can make it work, but it will be ugly and what I'd really like is to just make a recordset, .AddNew, and save the new workbook into the OLE field. Is there any way to do this??

If so, this one will be worth a major star to my benefactor! <;-}

Regards,
Gordon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top