Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
  Database
Automation
OS/Networking
Graphics
Links
Tools
» Regular Expr Tester
» Free Tools


To run this demo perform following steps.

- Create a standard exe project
- Add reference to Microsoft Hierarchical FlexGrid (MSHFlexGrid). you can do this by Pressing Ctl + T or Project -> Components.
- Add one MSHFlexgrid on the form1
- Add one button on the form1
- Add one textbox
- Set text1 text to mdb path which we are going to use.
- Press F5 to run the project
- Click on the command button to populate the grid

Click here to copy the following block
Dim cn As New Connection, rs As New Recordset

Private Sub Command1_Click()
  Dim cnStr, sql
  
  cnStr = "Data Source=" & Text1 & "; Provider=MSDataShape; Data Provider=Microsoft.Jet.OLEDB.4.0;"
  cn.Open cnStr

  sql = "SHAPE {SELECT * FROM Publishers} AS cmdPublishers APPEND ({SELECT * FROM Titles} AS cmdTitles RELATE 'PubID' TO 'PubID') AS cmdTitles"
  rs.Open sql, cn
  Set MSHFlexGrid1.DataSource = rs
  
  rs.Close
  cn.Close
End Sub


Submitted By : Jojo Desuja  (Member Since : 8/10/2004 10:56:17 PM)

Job Description : The King of Night....... Love to do programming specially night time....
View all (22) submissions by this author  (Birth Date : )


Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.