Hello people,
I have got a very long Query.
my goal is to make a very user-friendly interface where the user can select from lots different query criteria.
I did try to create an arraylist where each item presents a SQL column/SELECT/WHERE from the db example:
I found the problem I need to add a comma "," between all the elements to except the first and the last.
which is the best way to create a such of program?
I believe it must be a better way to make this?
I thought about use a datagridview/datatable
also dataset and sql parameters.
Thank you in advance
I have got a very long Query.
my goal is to make a very user-friendly interface where the user can select from lots different query criteria.
I did try to create an arraylist where each item presents a SQL column/SELECT/WHERE from the db example:
Code:
Dim QueryList As New ArrayList()
QueryList.Add("SQLStr =")
QueryList.Add("SELECT")
QueryList.Add("tt.ordernr 'Order number'")
QueryList.Add("tt.offertnr 'Quotation number'")
QueryList.Add("WHERE")
QueryList.Add("(DATEPART(YEAR,tt.date)=@datum")
which is the best way to create a such of program?
I believe it must be a better way to make this?
I thought about use a datagridview/datatable
also dataset and sql parameters.
Thank you in advance