G
Guest
I have a form that auto populates a project number using the following code:
Private Sub Project_Number_Enter()
Me!ProjectNumber = Nz(DMax("ProjectNumber", "[Project Table]"), 0) + 1
End Sub
When a user is in the form and minimizes the form it resets the project
number to the next number. It appears to refresh this field and runs the
code again. It also resets all the project numbers in the table. Obviously,
I can't have this! Any suggestions?
Private Sub Project_Number_Enter()
Me!ProjectNumber = Nz(DMax("ProjectNumber", "[Project Table]"), 0) + 1
End Sub
When a user is in the form and minimizes the form it resets the project
number to the next number. It appears to refresh this field and runs the
code again. It also resets all the project numbers in the table. Obviously,
I can't have this! Any suggestions?