Hello, I made a bit of a mess of my first post but I can't delete it, so have updated this one:
When creating a new point, I need it to fetch the Loc_num value from another point in the layer that is within 10m, otherwise populate it with +1 of the maximum value of all the points Loc_num field. Dropping a point within 10m of another one works fine, it fetches the Loc_num value. But when I drop a point more than 10m away from another point, it populates with 0. Here's the updated code, if anyone can tell me whats going wrong with the last bit, it would be much appreciated!