
Originally Posted by
June7
The real issue here is a non-normalized data structure. The output you want is a normalized structure.
A UNION query can rearrange the data. There is no wizard for UNION query, must type or copy/paste into SQL View of query builder.
SELECT 1 AS LinkID, StNum, StId, "Num1" AS Category, OpNum1 AS Data FROM StNum
UNION SELECT 2, StNum, StId, "Num2", OpNum2 FROM StNum
UNION SELECT 3, StNum, StId, "Num3", OpNum3 FROM StNum;
Do similar UNION queries for the other 2 tables.
Then do a 4th query that joins all 3 UNION queries on the LinkID fields. Apply the combobox filter criteria to this query.