Dynamic Column selection for Report in Vb6
Posted on 2014-12-14
This is VB6 and SQl Server problem.
I have one table with 10 text fields, 6 numeric fields and 4 date fields. table design is similar like t1, t2, t3, n1, n2, d1, d2, t4, t5, n3, n4, n5, t6, t7, t8, d3, d4, n6, t9. t10. where t =text, n=numeric and d=date field.
filter for record set are one date range (d1, d2) and two combo box for t1 and t2 field.
We display all twenty fields as check box. User select date range (compulsory) and select values of t1 and t2 from combo box (optional) for filter the result set and select any number of check box to display report columns and export this report to excel as xls format with selected column heads as first row.
Please help me to create dynamic record set and export the result set to excel as xls.