Take a look at http://www.craigberntson.com/Articles/kb006.htmBut Randy use VFP 9 and you can use field with type Integer(AutoInc).
acomp.nextfakenum Type Integer(AutoInc).
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst