Hello All!
I have a field called MissionNumber in a table called Missions. I want this field to autogenerate the next available number for the user. This field is not the primary key and it is a number field. I have been able to accomplish the increment of the next available by placing the following in the default setting of the field on the form:
DMax("MissionNumber", "Missions") + 1
However, I have a problem with saving the record. Unless I physically click and re-enter the number that was generated by the DMax function. Can anyone explain why this is happening and is there a way around this behavior. I do not want the user to have to type in the number.
Thanks in Advance!
I have a field called MissionNumber in a table called Missions. I want this field to autogenerate the next available number for the user. This field is not the primary key and it is a number field. I have been able to accomplish the increment of the next available by placing the following in the default setting of the field on the form:
DMax("MissionNumber", "Missions") + 1
However, I have a problem with saving the record. Unless I physically click and re-enter the number that was generated by the DMax function. Can anyone explain why this is happening and is there a way around this behavior. I do not want the user to have to type in the number.
Thanks in Advance!