Solved

HFlexGrid Recordset

Posted on 1998-12-11
2
230 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
Comment Utility
set HFLexGrid.Datasource=Recordset

Hope this is what your looking for.
0
 

Author Comment

by:RedWave
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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.
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 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…

763 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

11 Experts available now in Live!

Get 1:1 Help Now