I have a table that looks like this, What I want to achieve is to assign 4 variables X1, X2, Y1 and Y2.
Let say a user input -12 for X, so i need X1=-15, X2=-11, Y1=-100 and Y2=-60 or for user input 10 the variable will be X1=8.2, X2=18.9, Y1=25 and Y2=60
Basicaly I need to use the value of the record before and the record after from the user request
XY_Data_Point_Number X Y 1 -15 -100 2 -11 -60 3 -5.5 -23 4 -3.6 -10 5 0 0 6 1.6 4 7 2.3 10 8 8.2 25 9 18.9 60 10 31 100