I'm using vfp9 but the program may have been written in an earlier language. When i open up the database through vfp, the field is read only, unlike the other fields. Doing it manually (select max + 1) doesn't work on the insert, it just makes the field = 0.
I'm having trouble finding examples online for the proper syntax, can anyone help?
Edit: OK, the solution was to leave the field blank. The field is in a table that is eventually appended to a larger table (the one with an autonumber field). Before it's appended, the field is used in several seeks, though.
I'd prefer not to fix the code everywhere by simply setting the field to null before the append. replace field with null
gives an error though. What's the proper syntax for setting a table field to null?
Edit again: dropping the column worked. Apparently you can't set a number field to null.