Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    DPrugh is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2016
    Location
    Manchester, ME
    Posts
    10
    OK - I created a new table called 'CurrentYr'.
    It only has 1 record - a constant - 2016 - No primary key



    Only one item in the table

  2. #17
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Why did you create a new table if you already had a table with the data?

    Did you see post 15?
    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. #18
    DPrugh is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2016
    Location
    Manchester, ME
    Posts
    10
    I thought having a simple table with just one item would be easier for the user to change.

  4. #19
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Users should not work directly with tables and queries, only forms and reports. You can have a form display only the record(s) user needs to see.

    And does that mean you now have to maintain the Current Year value in two tables?

    Options for retrieving the value.

    1. DLookup() expression:
    =DLookup("SomeFieldNameHere", "[CurrentYr]") - [BirthYr]

    2. query that includes the new table - without a JOIN clause
    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.

  5. #20
    DPrugh is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2016
    Location
    Manchester, ME
    Posts
    10
    Thanks to all. I will stick with going into deign view and changing the year.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 07-13-2015, 02:06 PM
  2. Replies: 3
    Last Post: 06-22-2015, 06:36 AM
  3. Replies: 7
    Last Post: 06-07-2015, 11:57 PM
  4. Replies: 1
    Last Post: 04-20-2015, 03:22 PM
  5. Replies: 3
    Last Post: 05-06-2014, 11:38 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