Commit = DLookup(Nz(DMax("commit", "commit", "[commit] = " _
& Forms!Form![Commit], 0) + 1))
--
ca1358