Results 1 to 2 of 2

Thread: SQL problems

  1. #1

    Thread Starter
    Lively Member mattalexx's Avatar
    Join Date
    Mar 2002
    Location
    Gloucester, MA
    Posts
    77

    SQL problems

    I have a combo box with the following ControlSource:

    "SELECT DBAbbrev FROM tblDB ORDER BY DBAbbrev"

    I lists all entries in DBAbbrev from tblDB. How do I make an SQL that lists the string "All" on the top? For example:

    I have:

    Sel1
    Sel2
    Sel3
    Sel4
    Sel5

    I need:

    All
    Sel1
    Sel2
    Sel3
    Sel4
    Sel5

    Is this possible?

    Thanks in advance,
    Matt(+)

  2. #2
    DerFarm
    Guest
    You are selecting the entries from a table. You will only get the
    entries in that table.

    If you wish to add the explicit term "All", look into using a UNION
    query. Essentially, you want the all the terms from the table and
    then you would UNION this with a query that returns the single
    item "All".

    Try it out in Access first to get the syntax.


    HTH

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width