By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,101 Members | 959 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,101 IT Pros & Developers. It's quick & easy.

Save record if any field has been modified on form

P: n/a
Joe
I have a form which displays data in 3 related tables. I want to give
the user a prompt to save changes when any field has been modfied on
the form.

Is there a easy way to do this so the 1 or more changes to a field can
be saved at once?

Thanks!

Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Joe" wrote
I have a form which displays data
in 3 related tables. I want to give
the user a prompt to save changes
when any field has been modfied on
the form.


If this is a "bound form", that is, has a RecordSource of a Query that joins
the three related tables, then the data will be saved if the record is
changed -- saving will take place automatically when you move off the record
to another, or move to a subform control on the form, or close the form. You
can also save explicitly via VBA code using the statement Me.Dirty = False,
or DoCmd.RunCommand acSaveRecord, by the menu, or by a PF key action.
Explicit action to save is rarely needed except in special cases.

If you are using an unbound form, that is, using your own VBA code to read
the data, put it in controls for display, etc., then you will have to
determine the conditions under which the record needs to be saved, which
specific record needs to be saved, and perform the save yourself in your VBA
code. I do not recommend using unbound forms for handling data, as a general
rule.

Larry Linson
Microsoft Access MVP

Nov 13 '05 #2

P: n/a
The user does not a prompt. The record on the screen will be automatically
saved if a change has been made if,
1. the user goes to a new record
2. the user closes the form
3. the user closes Access

To detect if a change has been made, look at the Dirty property in the Help
file.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"Joe" <jc**********@comcast.net> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I have a form which displays data in 3 related tables. I want to give
the user a prompt to save changes when any field has been modfied on
the form.

Is there a easy way to do this so the 1 or more changes to a field can
be saved at once?

Thanks!

Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.