Results 1 to 2 of 2

Thread: Changing MsFlexgrid DataSource at runtime

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2000
    Posts
    23

    Question

    Is it possible to Change the Datasource Property of a MsFlexgrid at run time?
    How can i do that?
    Nemachtiani
    in othin ihuan in tonaltin nican tzonquica

  2. #2
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Thumbs up

    Just do it in this way

    Code:
    Private Sub Command1_Click()
    Set MSFlexGrid1.DataSource = Data1
    MSFlexGrid.Refresh
    End Sub
    
    Private Sub Command2_Click()
    Set MSFlexGrid1.DataSource = Data2
    MSFlexGrid.Refresh
    End Sub
    Or you can do this by changing the Data control [RecordSource

    Code:
    Private Sub Command1_Click()
    Data1.RecordSource = "SELECT * FROM <New Table>;"
    Data1.Refresh
    End Sub
    [Edited by Chris on 06-25-2000 at 12:34 PM]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width