Results 1 to 3 of 3
  1. #1
    mmaarof is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    1

    Cool Keep the previous value after creating a new record

    Hi..

    I'm new here..I want to know how to keep previous data/value after creating a new record.

  2. #2
    lfpm062010 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Location
    US
    Posts
    415
    This is one way.

    Create a SAVE/BACKUP table to store those previous data/value.

  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
    Your goal here is a little fuzzy, from your post, but if you're saying that you want to enter a value in one Record, then have that same value automatically entered in subsequent New Records, you can use the AfterUpdate event of the Control holding your data to set the DefaultValue for the Field. From that time forward, until you either manually change the data or close your form, the data will be entered automatically in each New Record.

    Code:
    Private Sub YourControlName_AfterUpdate()
       Me.YourControlName.DefaultValue = """" & Me.YourControlName.Value & """"
    End Sub

    This syntax is valid for Text, Number, DateTime and Boolean Datatypes.

    You’ll need to do this for each Control that you want to ‘carry forward.’

    Linq ;0)>

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

Similar Threads

  1. Replies: 2
    Last Post: 03-05-2014, 05:37 PM
  2. Replies: 5
    Last Post: 07-19-2013, 03:42 PM
  3. Replies: 8
    Last Post: 07-06-2013, 05:13 PM
  4. Replies: 5
    Last Post: 06-16-2013, 05:25 PM
  5. Replies: 22
    Last Post: 06-12-2012, 10:02 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