Results 1 to 2 of 2
  1. #1
    hshourie is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    1

    Help required to output query in certain format

    Hi all



    I am new to this forum.
    I am practicing access in my office work.

    I got new data to make where i am facing difficulty.

    I had 2 tables:
    Table 1 consists of 2 fields ( unique numbers in this table )
    custcode
    action_date

    Table 2 consists of 2 fields ( multiple entries in this table )
    custcode
    alert_date

    what is required in output is
    custcode
    action_date
    alert_date_1
    alert_date_2
    alert_date_3


    where alert_date is less than action_date
    and also
    alert_date is closest to action_date

    it means alert_date_1 is most closest to action_date
    alert_date_2 is 2nd most closest date to action_date.

    i tried but no success yet.

    Please help how to achieve in access.

    Thanx a lot.

  2. #2
    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,728
    Show us what you tried. Give us an example of the data, with a sample of the desired output.

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

Similar Threads

  1. Replies: 6
    Last Post: 10-09-2012, 02:29 PM
  2. Replies: 7
    Last Post: 08-13-2012, 06:59 AM
  3. Output query to list box
    By shabbaranks in forum Programming
    Replies: 4
    Last Post: 02-08-2012, 09:53 AM
  4. Querry IIf Output Format (Access 2003)
    By Bruce in forum Access
    Replies: 2
    Last Post: 12-03-2009, 06:52 PM
  5. Output Query to Text
    By denileigh in forum Queries
    Replies: 1
    Last Post: 05-27-2006, 12:34 PM

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