Results 1 to 2 of 2
  1. #1
    Luke is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2011
    Posts
    72

    Question Review Cycles

    My database has a bunch of reports. The company I'm working for uses review cycles (monthly quarterly, and annually). I have a Reviews form with a review cycle based off of this table:

    CycleID.........CycleDesc
    1....................Monthly
    2....................Quarterly
    3....................Yearly

    I HAVE to keep this table for my forms and reports to work.

    I also have another field called "ReviewCycle" in a separate table. The records under "Review Cycle" are "M" "Q" and "YYYY" (monthly, quarterly, yearly). I need this field in order to create a query using the DateAdd function. My query contains the following:

    Entity Name, Review Cycle (M,Q,YYYY), Review Date, and my Next Review Expression using the Dateadd function:

    Next Review: DateAdd([ReviewCycle],1,[ReviewDate])

    Currently my boss has to select "CycleDesc" (Monthly, Quarterly, Annually) from the first table AND "ReviewCycle" (M,Q,YYYY) from the other table. He only wants to select it once.

    I would like to either:


    (1) Delete my "ReviewCycle" field and use "CycleDesc" in my query's Expression above, but the Dateadd function needs to use "M,Q,and YYYY" for the expression to work.
    (2) Somehow LINK my "ReviewCycle" field to my "CycleDesc" and "CycleID" fields so that I only have to choose the Review Cycle for each company once in the forms.

    Any auggestions?

    Thanks.

    -Luke

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    You could use a nested IIF in the expression.

    DateAdd(IIF([CycleDesc]="Monthly","M",IIF([CycleDesc]="Quarterly","Q",IIF([CycleDesc]="Yearly","Y",""))),1,[ReviewDate])

    Other table not needed for this. Is anything else in the Other table? I am not even sure why you need the first table. These three values can be offered to user without pulling from a table.
    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.

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

Similar Threads

  1. Replies: 1
    Last Post: 07-15-2011, 11:00 AM
  2. review my database
    By simba in forum Access
    Replies: 0
    Last Post: 06-20-2011, 08:40 AM
  3. BD Structure (review)
    By Bryan021 in forum Database Design
    Replies: 0
    Last Post: 05-26-2011, 11:39 AM
  4. Review/new answer to a question sub-form
    By vt800c in forum Forms
    Replies: 0
    Last Post: 10-18-2010, 12:04 PM
  5. Review Date on A Form Warning
    By maintt in forum Forms
    Replies: 3
    Last Post: 07-19-2010, 02:28 AM

Tags for this Thread

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