Solved

HFlexGrid Recordset

Posted on 1998-12-11
2
235 Views
Last Modified: 2013-12-25
How can a HFlexGrid control be bound directly to a shaped recordset (ADODB.Recordset) without going via a data control.  I suspect that another grid control is required (with similar functionality) but cannot find one.  Can you suggest such a control?
0
Comment
Question by:RedWave
2 Comments
 
LVL 3

Accepted Solution

by:
jjbyers earned 200 total points
ID: 1488900
set HFLexGrid.Datasource=Recordset

Hope this is what your looking for.
0
 

Author Comment

by:RedWave
ID: 1488901
Thanks, but that was exactly what I was doing - and getting a run-time error saying that the grid doesn't support that kind of binding.  I have found my own answer though.  

The problem was that I was setting the datasource and datamember at design-time to equivalent dataenvironment objects in order to format the grid a little bit better.  Clearing these before attempting to bind it to the recordset made the difference.  I discovered this not long after placing the question.  

As usual the answer was very simple - and very context sensitive - it would have been very difficult to foresee this as my problem.  But I am very impressed with how quickly you responded.

Thanks a lot.
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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

863 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

19 Experts available now in Live!

Get 1:1 Help Now