Solved

Passing a DAO datasource from an OCX

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Cannot enter table caption text in Word protected document 6 112
Modifying Conditional Format from VBA code 3 49
MsgBox 4 48
Zip Folders Using Chilkat Routines 1 12
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
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…

867 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

21 Experts available now in Live!

Get 1:1 Help Now