` Printed Icetips Article

Icetips Article



Par2: Generating autonumber key on OK Accepted
2000-01-07 -- Maarten Veenstra
 
> Is there a way to generate the auto number key on the pressing of the OK
> button instead of it being generated when I open my form?

In ThisWindow.Init of the form:
  Access:MyFile.CancelAutoInc

The AutoInc is (re-)done (again) by Access:MyFile.Insert() and thus 
automagically - no more coding needed.



Printed November 23, 2024, 6:51 am
This article has been viewed/printed 35309 times.