cadwalli
Active member
Hi
Can someone explain how I can perform the following in VB.Net please.
In my old system (Progress), if we created a report we would take as input a lower boundary and an upper boundary from the user, i.e. Employee Start: / Employee End.
So, id have two variables which took the start and end employees (i.e. emp_start, emp_end).
If either of these were blank it meant to all records before or all records after, ie.e. start = "", end = "D" would show all employees from A to D.
To do this I would retrieve data from the DB by a line similar to
SELECT <fields> FROM <table> WHERE Employee_Number >= emp_start and Employee_Number <= emp_end
We would have constants set up for all fields, so if a blank was used the in a from field it would start at "A", if it was the end field it would set blank to "ZZZZZZZ"
Is there a simple way to do this is SQL.
This may be an obvious question - but SQL is still pretty new to me!
Thanks in advance
Ian
Can someone explain how I can perform the following in VB.Net please.
In my old system (Progress), if we created a report we would take as input a lower boundary and an upper boundary from the user, i.e. Employee Start: / Employee End.
So, id have two variables which took the start and end employees (i.e. emp_start, emp_end).
If either of these were blank it meant to all records before or all records after, ie.e. start = "", end = "D" would show all employees from A to D.
To do this I would retrieve data from the DB by a line similar to
SELECT <fields> FROM <table> WHERE Employee_Number >= emp_start and Employee_Number <= emp_end
We would have constants set up for all fields, so if a blank was used the in a from field it would start at "A", if it was the end field it would set blank to "ZZZZZZZ"
Is there a simple way to do this is SQL.
This may be an obvious question - but SQL is still pretty new to me!
Thanks in advance
Ian