Click here to Skip to main content
15,881,173 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there,

Using Visual Studio 2019 I created a OCX, using MFC ActiveX control wizard.
This works correctly in Microsoft Access, it's useable on an access-form.

Now from my CCOleControl I would like to get access to the msaccess Application or UserControl hosting my ole-control.

Final goal would be to use the msaccess Application CurrentDb and other fields, and display database information in c++ tree or list on access form.

Does anyone has experience with this? accessing access from ole control?

Or another aproach, if someone knows if it's possible to add a 'msaccess' rowsource with recordset or something on my ole-control, and make the database available through that, I would like to hear about that also.

TIA,
Bert

What I have tried:

googled a lot, but can't find not much about ole & msaccess integration.
A link to some documentation would be great also.
Posted
Updated 22-Sep-21 20:27pm

1 solution

NEWINFO: AccessibleObjectFromWindow() seems to be what I need to get to MS access from OLE-ActiveX.

Still struggling with RowSource property.. access crashes when property with this name is on the OLE-control. Anybody any hints/suggestions for this?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900