- Local time
- Today, 17:03
- Joined
- Feb 19, 2002
- Messages
- 43,300
I don't understand your objective. In a properly designed table, some fields would be optional and some would be required. Forms are intended to work on the entire record, not just individual fields. So when the user is finished updating the current record, he moves on. That could mean that he closes the form or scrolls to a new record or perhaps you made a button to push to indicate he wants to save. Access is very responsible about saving records and most people are troubled by the fact that Access saves too much rather than not enough. In any event, you would NEVER want to save after the entry of each field because that would prevent you from employing rules that say that certain fields MUST be present in order for a record to be valid.The way I've designed this, the change should occur (into the table) immediately... without any extra click. So I was thinking of the after update event, but that means that for every control that might be changed. Or am I on the wrong track ?
You also mentioned that you were entering data in a temp table and then moving to the permanent table. This extremely tricky in a multi-user environment. It's not bad for adding data but updating and deleting is fraught with danger. You enter the data in the temp table and validate it along the way but databases are not static so what if between the original entry and the move to the permanent table something changes that would make the validation rule fail? Now you've added bad data to your production table. The only case were I would use temp tables is for an app where I needed to do "batch" entry. An entire set of records must be entered and validated and balanced. Once they'r complete, then they can be made permanent. Once they are permanent, they can not be changed again. The entire batch needs to be flagged as deleted and you start again.