Results 1 to 3 of 3
  1. #1
    OzzyMiner is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Mar 2011
    Posts
    1

    Oracle LAG Equivalent


    Folks, How does one replicate the equivalent of the Oracle LAG function? Basically I need to calculate the difference between a specific field in a row and the same field in the previous row, e.g. the difference between dates

  2. #2
    William McKinley is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    59
    Quote Originally Posted by OzzyMiner View Post
    Folks, How does one replicate the equivalent of the Oracle LAG function? Basically I need to calculate the difference between a specific field in a row and the same field in the previous row, e.g. the difference between dates

    Not sure if this will help, but I had a problem a while back where I needed to refer to records above and below the current record to count employee RF transactions.

    https://www.accessforums.net/queries...elow-8134.html

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Access doesn't have Analytic functions like Oracle.
    You could probably design some custom functions in vba.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. autecl*** for pcomm - I am looking for equivalent?
    By jasonarmey in forum Programming
    Replies: 0
    Last Post: 09-22-2010, 04:30 PM
  2. Equivalent MsAccess Query
    By noviceUser in forum Access
    Replies: 2
    Last Post: 09-18-2010, 06:03 AM
  3. Is there equivalent code in VBA?
    By techneophyte in forum Programming
    Replies: 4
    Last Post: 08-02-2010, 07:11 AM
  4. WeekdayName equivalent in 2000
    By sunnybrook in forum Queries
    Replies: 8
    Last Post: 07-14-2010, 10:47 PM
  5. Oracle password
    By thart21 in forum Programming
    Replies: 0
    Last Post: 04-06-2010, 10:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums