Just telling it to insert into stations (code) values (oapp.temp). Oapp.temp is a memory variable from a class. If I try changing oapp.temp to say '998' it still fails. 'Code' field is a simple 3 character field.
Nothing unusual in the real table. No default values and no primary key.
I must be missing something very basic. Any help much appreciated.