Solved

Passing a DAO datasource from an OCX

Posted on 1998-12-18
1
263 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 200 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…

740 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