I have a table (Approved Item Numbers) that contains a field [ITEM KEY] and [Description]. Part of the table contains records where the ITEM NUMBER is constructed like yyyy-q-nnn (y=Fiscal year, q=fiscal quarter and nnn-sequential number). The other part of the table contains records with alphanumeric data. I would like to create a third table (for a combo box) where the first part of the table contains the data from my first table sequenced in decending sequence. The second part of the third table should contain the data from my second table in ascending alphabetic sequence. I have tried to UNION the two tables but no matter what I do, the first part of the output table matches my first table (in ascending sequence) while the second part of the table matches my second table in aphanumeric sequence.
I have tried pre-sorting the first and second tables, but the result is still the same.
Table 1 is created with the query:
SELECT [Item Number],[Description] FROM [Approved Item Numbers] WHERE IsNumeric([ITEM NUMBER],4]=true ORDER BY [ITEM NUMBER] DESC
Table 2 is created with the query:
SELECT [Item Number],[Description] FROM [Approved Item Numbers]
WHERE LEFT(([ITEM NUMBER],1)>='A' ORDER BY [ITEM NUMBER] ASC
What am I doing wrong?
Thanks...
I have tried pre-sorting the first and second tables, but the result is still the same.
Table 1 is created with the query:
SELECT [Item Number],[Description] FROM [Approved Item Numbers] WHERE IsNumeric([ITEM NUMBER],4]=true ORDER BY [ITEM NUMBER] DESC
Table 2 is created with the query:
SELECT [Item Number],[Description] FROM [Approved Item Numbers]
WHERE LEFT(([ITEM NUMBER],1)>='A' ORDER BY [ITEM NUMBER] ASC
What am I doing wrong?
Thanks...