Hi I have a query to bring in values, I need to select 2 rows of data but the criteria is as such:
x= starting value on form
now the row of data must match the following criteria
previous row to current row(ref temp)<=x And Current row(ref temp)>x
next row to current row(ref temp)>=x And Current row(ref temp)<x
I have dealt with SQL before but have no idea how to do the above.
The isolated 2 rows of data will then go into unbound boxes on a form from which I will do intercept and gradient calculations.
Thanks for your help
x= starting value on form
now the row of data must match the following criteria
previous row to current row(ref temp)<=x And Current row(ref temp)>x
next row to current row(ref temp)>=x And Current row(ref temp)<x
I have dealt with SQL before but have no idea how to do the above.
The isolated 2 rows of data will then go into unbound boxes on a form from which I will do intercept and gradient calculations.
Thanks for your help