Consulting

Results 1 to 6 of 6

Thread: Solved: Show Only Last 3 Dates in a Report

  1. #1
    Site Admin
    The Princess
    VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location

    Solved: Show Only Last 3 Dates in a Report

    Golf games.
    Once a week.
    I want the report to only have columns for the last 3 dates in my records.

    How do I do that?
    Otherwise, I think I've got the report figured out.

    I have a DB that I can send to whoever.
    ~Anne Troy

  2. #2
    VBAX Tutor SJ McAbney's Avatar
    Joined
    May 2004
    Location
    Glasgow
    Posts
    243
    Location
    SELECT TOP 3 MyFields
    FROM MyTable
    ORDER BY MyDate DESC;

  3. #3
    Site Admin
    The Princess VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location
    LOL. Looks like SQL?

    I don't have a clue...

    Here's the file.

    Puhleeeeeeeeeze??

    ~Anne Troy

  4. #4
    BoardCoder VBAX Regular
    Joined
    May 2004
    Location
    Istanbul, Turkiye
    Posts
    73
    I am not sure that it could be solved by using Crosstab query, Anne. Probably there are better and most common solution for that but I used a temporary table with 3 days and scores for these days and updated this temporary table with VBA by opening the report to be the data source for that report.

    Not very good way, but..

    Suat

  5. #5
    VBAX Tutor SJ McAbney's Avatar
    Joined
    May 2004
    Location
    Glasgow
    Posts
    243
    Location
    Only the last three dates overall or the last three dates per player?

  6. #6
    Site Admin
    The Princess VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location
    Okay! The user (now member JoeLeanza) has got smozgur's file and thinks he can work with that.

    Marking solved!
    ~Anne Troy

Posting Permissions

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