Solved

True DBGrid. How to display fields from multi-table query?

Posted on 1998-11-22
1
188 Views
Last Modified: 2013-12-25
I'm using True DBGrid 5.0 with ISG data control for ADO.  Created an ADO 1.5 redordset from a query joining two SQL Server 6.0 tables in VB5 code. I set the TDBGrid.Recordset property = to myquery.  But how do I get the columns to be reflected in the grid?  Using the properies interface, can't seem to set the columns to aanything but the databse/table set on the datasource proterties tab.  Thanks for any tips. Dan Foster. Austin, TX.
0
Comment
Question by:danfoster
1 Comment
 
LVL 1

Accepted Solution

by:
alesh earned 50 total points
Comment Utility
You can write the field name in the DataField textbox in the Columns tab.
Right click grid, click Columns Tab, type in the name of the field in the DataField box. The Grid control doesn't have to see the fields at design-time, it doesn't check if they exist. If at run-time one field won't be there it will resume next without error.
Hope this was what you were looking for!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

762 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