Solved

Passing a DAO datasource from an OCX

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

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…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

776 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