R
R.Rafii
Hi all,
I am using Visual Studio 2005 and Visual basic.
I've created a form with two ComboBoxes and a DataGrid
I binned the ComboBoxes to a table on my remote SQL2005 server
What I want to do is use the info from the two ComboBoxes
To create a SELECT query and display it on the DataGrid
For example:
If the user selected from cmb1 a "Username" and on cmb2 "failed
Reports"
Execute a SELECT query
SELECT * from students where sname LIKE @cmb1 and status LIKE @cmb2
And show it on the DataGrid
Any Suggestions? (Would be greatly appreciated if someone can paste a
sample code)
I am using Visual Studio 2005 and Visual basic.
I've created a form with two ComboBoxes and a DataGrid
I binned the ComboBoxes to a table on my remote SQL2005 server
What I want to do is use the info from the two ComboBoxes
To create a SELECT query and display it on the DataGrid
For example:
If the user selected from cmb1 a "Username" and on cmb2 "failed
Reports"
Execute a SELECT query
SELECT * from students where sname LIKE @cmb1 and status LIKE @cmb2
And show it on the DataGrid
Any Suggestions? (Would be greatly appreciated if someone can paste a
sample code)