OS: Linux 5.4.0-42-generic x86_64
LO: 6.4.4.2, build ID: 1:6.4.4-0ubuntu0.20.04.1
For a small inventory database I have (among others) the following tables and relationships:
![image description](upload://jaeaooPh13seB5YDypQzm6V8hY2.png)
I also have a form that looks like this: ![image description](upload://b9T9uUAGulz9sq7iKUc9DQmDrNV.png)
Class and type are selected from appropriate tables, manufacturer is selected with the SQL statement SELECT "nickname", "status", "role" FROM "companies" WHERE "status" <> 'O' AND "role" = 'M'
The middle table section is a subform for the parts-vendor table, allowing multiple vendors to be linked to the same part. The vendor is selected with the SQL statement SELECT "nickname", "status", "role" FROM "companies" WHERE "status" <> 'O' AND "role" <> 'M'
This works like a charm, no problems there.
The table in the lower left corner is a subsubform, to allow multiple pricebreaks for each vendor/order_code combo. The vendor and order_code fields are linked from the subform and not shown, the label field above it is taken from pricebreaks.order_code.
Here the problem starts: while I can enter multiple pricebreaks, already existing pricebreaks are not shown.
Any attempt to create a relationship from part-vendor to pricebreaks results in an SQL error -170; linking pricebreaks to companies and part-vendor is possible but is not saved.
Most likely I do something wrong, but can't figure out what.
Any help is greatly appreciated.