G
Guest
Thanks for taking the time to read my question.
I want to create a list of products with NONE at the top of the list.
What I thought I'd do is have one table with the word NONE in it, and
another table with all the products in it. Then I'd make a union query,
bringing them together.
I put a select statement selecting the NONE value from the table that holds
it first, and then a select statement selecting all the product names from
the other table.
I assumed that the union query would display NONE first then all the product
names. What I'd like to do is create a query that alphabetizes the product
names and union that to the table that holds NONE as a value. That way in my
combo box, I'll have NONE as the first value and then all the products listed
alphabetically after that.
What I am getting when I use just the two tables is the result ALPHABETIZED!
I have no idea why they are alphabetized. There is no sorting.
Please guide me before I smash my computer.
Thanks again,
Brad
Here is my SQL:
SELECT tblNone.FieldNone
FROM tblNone
UNION SELECT tblMed.Med
FROM tblMed;
tblMed values are
Record 1 = Tylan
Record 2 = Flavo.
tblNone value is
Record 1 = NONE
I want to create a list of products with NONE at the top of the list.
What I thought I'd do is have one table with the word NONE in it, and
another table with all the products in it. Then I'd make a union query,
bringing them together.
I put a select statement selecting the NONE value from the table that holds
it first, and then a select statement selecting all the product names from
the other table.
I assumed that the union query would display NONE first then all the product
names. What I'd like to do is create a query that alphabetizes the product
names and union that to the table that holds NONE as a value. That way in my
combo box, I'll have NONE as the first value and then all the products listed
alphabetically after that.
What I am getting when I use just the two tables is the result ALPHABETIZED!
I have no idea why they are alphabetized. There is no sorting.
Please guide me before I smash my computer.
Thanks again,
Brad
Here is my SQL:
SELECT tblNone.FieldNone
FROM tblNone
UNION SELECT tblMed.Med
FROM tblMed;
tblMed values are
Record 1 = Tylan
Record 2 = Flavo.
tblNone value is
Record 1 = NONE