Results 1 to 3 of 3
  1. #1
    fazer909 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    4

    is this possible....

    up until now I have had no luck doing this but can anyone tell me if this is possible....

    i managed to work out how many weeks trainees on my programme by using this query :

    Week No: DateDiff("ww",[Start Date],Date())



    my question is .... can i use the result from this expression to have information displayed from a particular field depending on which week they are on.. ?

    e.g.

    if a trainee is found to be on week 3 i would like it to display information from the 'week 3' field

    i want to have 13 weeks worth of comments to display their progress on the programme and each week ill have to print off a report on how they are doing that week whilst keeping a record of this on the database

    hope someone can help ?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    You have a 'week 3' field? Does this mean you have 13 'week' fields? This would not be a normalized data structure and will likely cause lots of frustration.

    What you want could be done - with an expression or a custom VBA function.

    Possible expression:

    Choose(DateDiff("ww",[Start Date],Date()), [Week1], [Week2], [Week3], [Week4], [Week5], [Week6], [Week7], [Week8], [Week9], [Week10], [Week11], [Week12], [Week13])
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    fazer909 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    4
    Exactly what i was looking for ..... thanks so much for your help .... you have made my day

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

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