I have some logic in a push button to save a record with a sequential number, which is stored in a control table. The logic only works once unless I close the form and re-enter it again. Does anybody know what could be causing the problem. I have added the code to obtain and store the sequentail number below. Thanks for any help
select * from sysfile into cursor csr_sys
sidnum = csr_sys.account + 1
replace account with sidnum in sysfile
select * from sysfile into cursor csr_sys
sidnum = csr_sys.account + 1
replace account with sidnum in sysfile