Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2003
    Posts
    47

    Unanswered: SQL string to select last record

    Sup.

    Anybody can help me out with an SQL string to select LAST record in a table?

    Thanks
    F..ck it, gimme a beer... Jimi Hendrix RULES!

  2. #2
    Join Date
    Dec 2002
    Location
    Préverenges, Switzerland
    Posts
    3,740
    you can try the domain aggregate function
    DLAST("fieldNameAsString", "tableOrQueryAsString")

    izy

  3. #3
    Join Date
    Jul 2003
    Posts
    48

    Re: SQL string to select last record

    SELECT TOP 1 * From TableName ORDER BY FieldName DESC

    This will return 1 record based on the field name that will indicate the last record, i.e. a unique id no.

Posting Permissions

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