Consulting

Results 1 to 3 of 3

Thread: SOLVED: Find start and end date

  1. #1
    VBAX Regular
    Joined
    Jun 2004
    Posts
    28
    Location

    SOLVED: Find start and end date

    How can I retrieve with a query the first and the last date of a data base?

  2. #2
    VBAX Master TonyJollans's Avatar
    Joined
    May 2004
    Location
    Norfolk, England
    Posts
    2,291
    Location
    Assuming you mean Table(s) and/or Queries when you say DataBase ..

    SELECT MAX(DateField) FROM Table

    .. should get the latest date. Use MIN instead of MAX for the earliest. You can make the FROM (and associated WHERE) clauses as complex as you can with any other query.
    Enjoy,
    Tony

    ---------------------------------------------------------------
    Give a man a fish and he'll eat for a day.
    Teach him how to fish and he'll sit in a boat and drink beer all day.

    I'm (slowly) building my own site: www.WordArticles.com

  3. #3
    VBAX Regular
    Joined
    Jun 2004
    Posts
    28
    Location
    thank you!
    To Admin: Consider the thread closed.
    G.

Posting Permissions

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