Solved Prevent ms access to autosave data (1 Viewer)

spaLOGICng

Member
Local time
Today, 05:49
Joined
Jul 27, 2012
Messages
127
I think what you are asking is the opposite of what has been asked for years, to automatically save data, because much data has been lost by not clicking the save button.

Access has always provided the "Undo" method for each Control and Form. I recommend making use of those methods.
 

561414

Active member
Local time
Today, 07:49
Joined
May 28, 2021
Messages
280
@Ihk You might want to try another workflow that does not break too many Access "good practices" and allows your users to feel comfortable with its autosave features. It's used a lot in the web forms, so people might feel familiar with it.

It basically involves creating the parent first, with as few required fields as possible. Upon creation, it will be added to a list of created items, all of them parent records. Each parent item will have an "actions" column to the far right with buttons like view, edit, delete, etc. If your users add a record and they don't like it anymore, they can just delete it before any children are added to it. If your users are fine with that new record or some other record, they can just click view, or edit and you see another form with extra info where you can add children and modify stuff. If the parent record is deleted, its children will be deleted too.

The advantage is that users will understand the relationship between the records by having the parents separated from the children and you as the developer don't have to deal with temporary tables or the like. Just one form is unbound, and that is the "add new" form, that's why it has to have very few fields, just enough for your user to identify it after creation.

Here's a demo.
 

Attachments

  • index.jpg
    index.jpg
    67.8 KB · Views: 59
  • addnew.jpg
    addnew.jpg
    28.1 KB · Views: 64
  • edit.jpg
    edit.jpg
    70.6 KB · Views: 63
  • DEMO_WITH_INDEX.accdb
    660 KB · Views: 69
  • Love
Reactions: Ihk

Ihk

Member
Local time
Today, 14:49
Joined
Apr 7, 2020
Messages
280
@Ihk You might want to try another workflow that does not break too many Access "good practices" and allows your users to feel comfortable with its autosave features. It's used a lot in the web forms, so people might feel familiar with it.

It basically involves creating the parent first, with as few required fields as possible. Upon creation, it will be added to a list of created items, all of them parent records. Each parent item will have an "actions" column to the far right with buttons like view, edit, delete, etc. If your users add a record and they don't like it anymore, they can just delete it before any children are added to it. If your users are fine with that new record or some other record, they can just click view, or edit and you see another form with extra info where you can add children and modify stuff. If the parent record is deleted, its children will be deleted too.

The advantage is that users will understand the relationship between the records by having the parents separated from the children and you as the developer don't have to deal with temporary tables or the like. Just one form is unbound, and that is the "add new" form, that's why it has to have very few fields, just enough for your user to identify it after creation.

Here's a demo.
This is also very nice approach. At 1st to add main field (Master - Product), then click to on edit button to add its further children via multiple tab controls. So, this way, it will avoid any confusion to add all data (including master, children) in one go. Thank you very much.
 

Users who are viewing this thread

Top Bottom