Grid and Form in same page ...

i tried to use the example from http://www.scriptcase.net/tutorials/…the-same-page/ but if the database is empty i can not insert a new record ??? can anyone help me …
(sc 9 )