Results 1 to 3 of 3
  1. #1
    vito1010 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2014
    Posts
    7

    Save data in a subform

    Greetings,



    I have a form (Christmas Card Master List) and a Subform (SR). The main form has name, address, salutation, etc... The subform has two check boxes (Sent & received) and a text box which is set to YEAR(NOW()). They are set in a relationship (ID-ID). How can I store the year so that when I open a record (Mr & Mrs Jones) in 2015, that the 2014 info (Sent/Received) still has the 2014 date in it. I know this sounds a little confusing.

    Thanks,
    Vito

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    What is the subform bound to? Isn't it a table of records that provide history of cards sent?

    Yes, I am somewhat confused. Do you want to display the last year a card was sent? Doesn't the subform display all the history records? Can use DMax() expression in textbox on main form.

    Can a record be either sent or received, not both? If yes, then should be one yes/no field (or a text field with two options), not two.
    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
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Like June7, I'm a little confused, too! But the Textbox has to be Bound to a Field in the underlying Table that the Subform is Bound to. If you're using the

    =YEAR(NOW())

    in the Control Source for the Textbox, you need to move that to the Default Value Property and place the underlying Field's name in the Control Source.

    Linq ;0)>

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

Similar Threads

  1. Replies: 5
    Last Post: 02-03-2014, 03:06 AM
  2. Replies: 15
    Last Post: 01-28-2014, 12:20 PM
  3. Replies: 9
    Last Post: 02-26-2013, 12:38 PM
  4. Replies: 2
    Last Post: 05-31-2012, 02:41 AM
  5. locking data in subform after record save
    By Nixx1401 in forum Forms
    Replies: 24
    Last Post: 05-31-2011, 01:48 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