One new weird observation I see all of a sudden with this updated query... the Ver column ended up with an odd square box character aka "[]" looking...
Decompile / Compact / Compile did not solve the problem.
Next I went off to search how Microsoft requires empty columns to be used in UNION queries to be specified. Turns out, I was specifying NULL incorrectly. They simply want a pair of empty double quote characters.
Evidently two double quote characters are also valid for NULLing numeric datatype fields.Because the structures of tables included in a UNION must be identical, there are two placeholders in the second SELECT statement to represent orders.order_id and orders.emp_id from the first SELECT statement.
NoteThe placeholders must be the same type as the fields that they represent. If the field is a date type, the placeholder should be { / / }. If the field is a character field, the placeholder should be the empty string ("").
Now, why that did not show up in the row for the static entry and overwrote a valid record's Ver value... that would be an Access bug. The [] character should have ended up in the row for the statically added pick list entry. (shrug) Working query as follows:
Code:
SELECT [id_vendor] AS [ID / Vendor:],[id],[rev],[revdisp] AS [Rev:],[ver] AS [Ver:],[price] AS [Price:]
FROM (SELECT TOP 1 "Production Part - Refers to JDE" AS [id_vendor],-1 AS [id],-1 AS[rev],"" AS [revdisp],"" AS [ver],"" AS [price] FROM [MSysObjects]
UNION
SELECT t.[id] & ' / ' & t.[vendortitle] AS [id_vendor],t.[id],t.[rev],t.[revdisp],t.[ver],t.[poprice] AS [price] FROM [tmptblqry_quotes] AS t) AS cb
ORDER BY [rev],[ver];