Is there a way to make the data report to show only the fields selected by the user?
I have a form where the user can select the fields(from ms access table) in the list box(checkbox enabled) to show in data report. The total fields is almost 50. When the user check/selects only 10 fields, then that will be the fieds to show in the data report. I need any idea to make it like this dynamically.
Create the SQL Statement by concatinate the field names, which theuser selected.
Dim xStr As String = "Select "
For i As Integer = 0 To ListBox1.SelectedItems.Count - 1
xStr &= ListBox1.SelectedItems(i)
If i < ListBox1.SelectedItems.Count - 1 Then
xStr &= ", "
End If
Next
xStr &= " From Table1"
Dear Friends, I am facing a problem, I have two forms,
Form1 Has one DataGrideview and Button redirect to Form2, which has Button(Browse Excel File) and combobox(Sheet No of excel ...