>>I don't know why my 'Add' form alway give me a extra blank record.
>>I place the append blank command at the init event of the form( I intend to append it manually). I insert a suspend command at the beginning of the init event,so I can trace it by the tracer. I discover that before my append command is executed, a blank record is appended. I don't know why it is done. So it always give me a extra blank record. But I don't want that happens, how can I do?
>>In my form, there are controls include listbox, combobox, textbox, editbox, checkbox, label, optiongroup, page.
>>
>>Thanks
>P.S. This happen when the table is empty( after zap the table).
>But ok when not empty??
If you have programmatically assigned a value to any control on the form that is bound to your table, Fox will add a record. This includes calculated values, (I updated a calculated value in my form.refresh() method when I saw this).
My answer was to check for recc() = 0 before any control update. Put it into my class code.
HTH
Barbara