Question about Union queries

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to make a list or combo box based off a table, with the addition
of a single line that doen't exist in any table.

What I'm trying:

SELECT [DeptNo], [DeptName] FROM tDepartments
UNION SELECT "*" AS [DeptNo], "All Deptarments" as [DeptName];

Obviously, this isn't working because there is no FROM clause in the union.
Is there a way to accomplish this?

Thanks in advance,
John
 
Sorry for the mispost. Moved to the more appropriate group of Access Queries
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Union Query 0
Union Query Where Clause 0
Union Query and Field Alias 7
Comlex union query question 4
Duplicates in union query 3
UNION question 3
Union Query 2
UNION QUERY.. 3

Back
Top