Function to get field's last value

Dear:-

Please do help ,how can i get the value of one feilds last value ,give me the c/side query/functon for that.