Solved

Passing a DAO datasource from an OCX

Posted on 1998-12-18
1
257 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
1 Comment
 
LVL 5

Accepted Solution

by:
AnswerTheMan earned 200 total points
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

771 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now