wendy
10-13-2004, 12:54 PM
I use three MSHFlexGrid in my project.
In the first MSHFlexGrid the user can load an Excel file.
The second MSHFlexGrid is populated with data of an external SQL server.
Data retrieved from Excel in MSHFlexGrid_1:
CUSTOMER_NAME;PART_NO;DESCRIPTION
Smith;1234;customer 1
Clarke;3345;customer 2
Renard;4322;customer 3
Data retrieved from SQL-Server in MSHFlexGrid_2:
CUSTOMER_NAME;ADDRESS;COMMTENS
Smith;City1;aaaa
Renard;City2;cccc
The third MSHFlexGrid3 shall contain both data as below:
CUSTOMER_NAME;ADDRESS;COMMTENS;PART_NO;DESCRIPTION
Smith;City1;aaaa;1234;customer 1
Clarke;;;3345;customer 2
Renard;City2;cccc;4322;customer 3
Currently I use a loop with .textmatrix(i,j) and copy the data from FlexGrid1 and FlexGrid2 into FlexGrid3.
This works in general but only if less data is stored in FlexGrid 1 or 2.
As soon as a large Excel file is loaded, or many data was retrieved from remote SQL server it takes a looooong time to add the data to FlexGrid3.
Is it possible to use a SQL query with JOIN instead?
Unfortunately I have no idea how to use it in this case :-(
Any hint are welcome.
Thanks / Stefan
In the first MSHFlexGrid the user can load an Excel file.
The second MSHFlexGrid is populated with data of an external SQL server.
Data retrieved from Excel in MSHFlexGrid_1:
CUSTOMER_NAME;PART_NO;DESCRIPTION
Smith;1234;customer 1
Clarke;3345;customer 2
Renard;4322;customer 3
Data retrieved from SQL-Server in MSHFlexGrid_2:
CUSTOMER_NAME;ADDRESS;COMMTENS
Smith;City1;aaaa
Renard;City2;cccc
The third MSHFlexGrid3 shall contain both data as below:
CUSTOMER_NAME;ADDRESS;COMMTENS;PART_NO;DESCRIPTION
Smith;City1;aaaa;1234;customer 1
Clarke;;;3345;customer 2
Renard;City2;cccc;4322;customer 3
Currently I use a loop with .textmatrix(i,j) and copy the data from FlexGrid1 and FlexGrid2 into FlexGrid3.
This works in general but only if less data is stored in FlexGrid 1 or 2.
As soon as a large Excel file is loaded, or many data was retrieved from remote SQL server it takes a looooong time to add the data to FlexGrid3.
Is it possible to use a SQL query with JOIN instead?
Unfortunately I have no idea how to use it in this case :-(
Any hint are welcome.
Thanks / Stefan