Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Combo Query With All? (a2k (9.0.6926) SP-3 Jet 4.0 SP-7)

    This query works OK:
    SELECT tblArrivals.dteDateArrival AS Arrival, Count(tblArrivals.lngID) AS [Count]
    FROM tblArrivals
    GROUP BY tblArrivals.dteDateArrival;

    This query works OK
    SELECT DISTINCT tblArrivals.dteDateArrival AS Arrival FROM tblArrivals UNION SELECT "<All>" FROM tblArrivals;

    I

  2. #2
    Platinum Lounger
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    4,594
    Thanks
    0
    Thanked 27 Times in 27 Posts

    Re: Combo Query With All? (a2k (9.0.6926) SP-3 Jet 4.0 SP-7)

    Try the following:

    SELECT tblArrivals.dteDateArrival AS Arrival, Count(tblArrivals.lngID) AS [Count]
    FROM tblArrivals
    GROUP BY tblArrivals.dteDateArrival
    UNION
    SELECT "<All>", 1 FROM tblArrivals

  3. #3
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Combo Query With All? (a2k (9.0.6926) SP-3 Jet 4.0 SP-7)

    Thanks Pat

Posting Permissions

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