I already made my automatic id working but I'm encountering a new problem. When I add a new record clicked on Save button, table is properly appended but on the form when issuing refresh(), it automatically displays the succeeding ID no. which should not be unless the user clicks on the Add button again. Also, when adding a new record from a blank table, I can't use reccount() that is, I want to force the program to save a value as starting id ,
for ex.
if rlock()
if reccount()=0 && blank table
repl acccust.id with '10001'
endif
unlock
endif
When I open the table using the command window so as not to be influenced by the program and issue reccount(), it finds reccount()=0 but in the program before the execution of the above code it detects that reccount() has a value of 1 already. Really do not know, what's causing this. Pls. help. Thanks.