Results 1 to 4 of 4
  1. #1
    Emmanuel is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2020
    Posts
    272

    Allow access forms to retain data last entered

    I have an access form which is not linked to any table.

    The form has some few vba codes behind it which basically that’s some calculations of which the results will not be stored.

    I will like to get the data I last entered be the data to be displayed when I load the form afresh.

    For example:

    If I have three fields : Basic_Salary, tax and Net_Salary.

    When i enter the basic_salary, the vba code helps calculate the tax and the net_salary.

    If I close the form and open it, I will like to see the basic_salary, tax and Net_salary I last calculated displayed on the calculator as last calculation made so I do a new calculation.

    Is this possible with access database?
    If it is, how do i go about it.

    Thank you.

  2. #2
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    The really simple answer is to store the data in a new unrelated table, and simply bind the form to it.
    Set the form to single record, remove the record selectors, and make sure the forms cycle property is set to Current record.
    Other form level settings should be don't allow deletions once the initial record is populated and data entry set to no.

    Your form will always open on the first and only record.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    Emmanuel is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2020
    Posts
    272
    Quote Originally Posted by Minty View Post
    The really simple answer is to store the data in a new unrelated table, and simply bind the form to it.
    Set the form to single record, remove the record selectors, and make sure the forms cycle property is set to Current record.
    Other form level settings should be don't allow deletions once the initial record is populated and data entry set to no.

    Your form will always open on the first and only record.
    Noted.
    Well give it a try and see how it goes.
    Thanks

  4. #4
    Emmanuel is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2020
    Posts
    272
    I tried your suggestion and it worked.
    Thanks so much for your time

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

Similar Threads

  1. Replies: 8
    Last Post: 06-18-2014, 02:51 PM
  2. Replies: 2
    Last Post: 07-30-2012, 03:26 PM
  3. Replies: 1
    Last Post: 04-26-2012, 09:13 PM
  4. Basic Q's? on how Forms Process Entered Data.
    By tucker1003 in forum Access
    Replies: 2
    Last Post: 03-24-2011, 06:25 PM
  5. Data Entry Form: Retain Selected List Box Value
    By William McKinley in forum Forms
    Replies: 1
    Last Post: 11-05-2010, 10:14 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