Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2014
    Posts
    12

    Setting a Date based on another Date in a subtable

    I am using Access 2007. I have a main table that has a field called "Date Returned". In the subtable, which is linked to the main table, I have a field "SSR Date" in which I want to calculate a date 7 days from the date of the "Date Returned" field.



    I went into the property sheet for the "SSR DATE" field in the subtable and tried to put in the default value of =[MAINTABLENAME]![Date Received]+7.

    It seems to be doing something but all I get in the field is "#NAME?"

    Not sure what I am doing wrong....

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Perhaps you can format the control SSR DATE as Short Date or something that relates to the data type of "Date Received"

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    Try:

    =[Forms]![MAINTABLENAME]![Date Received] + 7
    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.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Blimy! I missed that.

  5. #5
    Join Date
    Jul 2014
    Posts
    12
    Thank you so very much!!!

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

Similar Threads

  1. Date Query: Annual Data Based off of Form Date
    By steveabni in forum Queries
    Replies: 4
    Last Post: 04-21-2014, 02:15 PM
  2. Target Date Based on Created Date
    By mwong1782 in forum Access
    Replies: 1
    Last Post: 12-17-2013, 05:51 PM
  3. Replies: 1
    Last Post: 11-26-2013, 09:25 AM
  4. query to update a date based on another date
    By tkendell in forum Access
    Replies: 3
    Last Post: 06-29-2011, 09:32 PM
  5. Replies: 1
    Last Post: 02-06-2011, 06:36 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