A relative newbie (I’m a couple of months in), and I have a small problem (I hope):
I have a single form application that addresses a single table in a remote PostGresSQL database. The form contains a mainform, which is a list of the records as a grid, and a subform that contains the individual fields for view, edit and addition. The view/editing works fine, but when I try to add from the subform, I get a duplication error.
I investigated and note the documentation here with some concern(!) regarding Master and Detail fields; I think that instead of inserting an auto-increment value, the system is pulling the current key field from the master table which results in the duplication error:
pq_driver: [PGRES_FATAL_ERROR]ERROR: duplicate key value violates unique constraint "tablename_pkey"
I note topic 43893 and topic 26040 .but at this point I’m tearing out my hair…
Is there a workaround for this? Or must I completely rethink the structure of my form in order to add data?
Best wishes,
Candido Bandido