Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel
external usenet poster
 
Posts: 27
Default Active X and Data Grid

I am trying to access a SQL database and get a list for the user to select
from to be used in additional queries.

I have created an ActiveX Data Object and a Data Grid Object, and I am
trying to figure out how to link the two.

In visual basic, in the properties, there is a line called datasource that
links the two that isn't present in VBA.

Any help would be appreciated.


  #2   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel
external usenet poster
 
Posts: 459
Default Active X and Data Grid

"Richard Mogy" wrote ...

I am trying to access a SQL database and get a list for the user to select
from to be used in additional queries.

I have created an ActiveX Data Object and a Data Grid Object, and I am
trying to figure out how to link the two.

In visual basic, in the properties, there is a line called datasource that
links the two that isn't present in VBA.

Any help would be appreciated.


I assume you mean MSDATAGRD.OCX. I use it in an Excel project, but I'm
using a recordset rather than a data control. The Datasource property
is available at run-time e.g.

Set DataGrid1.DataSource = rs

--
  #3   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel
external usenet poster
 
Posts: 27
Default Active X and Data Grid

Thank you.
"onedaywhen" wrote in message
om...
"Richard Mogy" wrote ...

I am trying to access a SQL database and get a list for the user to

select
from to be used in additional queries.

I have created an ActiveX Data Object and a Data Grid Object, and I am
trying to figure out how to link the two.

In visual basic, in the properties, there is a line called datasource

that
links the two that isn't present in VBA.

Any help would be appreciated.


I assume you mean MSDATAGRD.OCX. I use it in an Excel project, but I'm
using a recordset rather than a data control. The Datasource property
is available at run-time e.g.

Set DataGrid1.DataSource = rs

--



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Grid lines in Excel not showing.Have tools,options,view/grid cked bajlearning Excel Discussion (Misc queries) 6 January 28th 07 02:00 AM
Pulling data from grid MRR Excel Worksheet Functions 3 October 12th 06 04:54 PM
data not aligned in grid when printing projectx633 Excel Discussion (Misc queries) 2 July 12th 06 09:38 PM
I need to convert grid.doc to an Excel Grid. suavejohn Charts and Charting in Excel 0 September 1st 05 06:26 PM
Is it possible to use 'grid' as a value in vb to process XL data? Philip Excel Discussion (Misc queries) 0 June 23rd 05 01:49 PM


All times are GMT +1. The time now is 02:21 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"