Click to See Complete Forum and Search --> : Changing MsFlexgrid DataSource at runtime
Nemachtiani
Jun 23rd, 2000, 05:43 AM
Is it possible to Change the Datasource Property of a MsFlexgrid at run time?
How can i do that?
Nemachtiani
Chris
Jun 24th, 2000, 11:32 PM
Just do it in this way
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
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]
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.