then I'm trying to calculate the maximum value for a field and add 1 to it and display this in a field on a form, when it is opened.