?
Solved

Passing a DAO datasource from an OCX

Posted on 1998-12-18
1
Medium Priority
?
265 Views
Last Modified: 2013-12-25
I included a DAO data control as part of an OCX. I want to use this user control's data control as a datasource for a data bound grid, flex grid, etc, however, these bound controls do not recognize the user control as a datasource at design time. I have tried setting the data control a number of different ways, but with no luck. How do I pass a data control through an OCX so it is recognized as a datasource at design time?
0
Comment
Question by:chlaurel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 5

Accepted Solution

by:
AnswerTheMan earned 400 total points
ID: 1498404
u can set a public propertyGet inside the control which will return a string with the dataSource of the data control.
in the client where the control is hosted - create a database object and set its dataSource to the one u get calling that PropertyGet.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month8 days, 10 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question