Sounds good, so here goes. Its quite easy really...
x1 is the longitude value for the FROM post code
y1 is the latitude value for the FROM post code
x2 is the longitude value for the TO post code
y2 is the latitude value for the TO post code
Now, all I do is calculate the differences and stuff, like this....
xdif = 69.1 * (y2 - y1)
ydif = 69.1 * (x2 - x1) * cos(y1/57.3)
Where cos is the cosine function on the value in the brackets.
Then multiply x by itself and y by itself. Add the 2 values together and calculate the square root!
miles=SQR(xdif *xdif +ydif *ydif )
Simple! 