A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"Save Record" Command Button



 
 
Thread Tools Display Modes
  #1  
Old June 8th, 2009, 10:09 PM posted to microsoft.public.access.forms
H E Johnson[_2_]
external usenet poster
 
Posts: 3
Default "Save Record" Command Button

I just want to know what exactly is the functionality of having a "save
record" option when using the Button Wizard? Doesn't Access automatically
save each field in your form once you tab/click out of it? I didn't think
there was any way to stop this "auto-saving" so why is there a "Save Record"
command?
  #2  
Old June 9th, 2009, 03:00 AM posted to microsoft.public.access.forms
tina
external usenet poster
 
Posts: 1,997
Default "Save Record" Command Button

when you enter table data via a form, Access doesn't save field data
individually - it saves an entire record when you move to another record,
move between a mainform and subform, close the form, set the Dirty property
to False, or explicitly save the record from the menu bar, tool bar, or any
other means that uses a macro or VBA code to save. you can prevent the
automatic save at the form level by writing code in the form's BeforeUpdate
event.

as for *why* you would want to, or need to - well, there could be a lot of
reasons, just depends on the situation. if your users don't have a specific
need for a Save button, just don't put one on the form.

hth


"H E Johnson" wrote in message
...
I just want to know what exactly is the functionality of having a "save
record" option when using the Button Wizard? Doesn't Access automatically
save each field in your form once you tab/click out of it? I didn't think
there was any way to stop this "auto-saving" so why is there a "Save

Record"
command?



  #3  
Old June 9th, 2009, 12:25 PM posted to microsoft.public.access.forms
BruceM[_4_]
external usenet poster
 
Posts: 558
Default "Save Record" Command Button

In my experience some users just want to see a Save button. They are in the
habit of saving with Word, Excel, et al, so they want to do the same with
Access. No amount of explanation about Access saving automatically will
satisfy them. If a button already has the effect of saving the record (e.g.
a New Record button) I sometimes just add Save to the label or caption. On
a form for data entry only I tend to label the New Record button as the Save
button, even though the code behind the button advances to a new record
rather than explicitly saving.

"tina" wrote in message
...
when you enter table data via a form, Access doesn't save field data
individually - it saves an entire record when you move to another record,
move between a mainform and subform, close the form, set the Dirty
property
to False, or explicitly save the record from the menu bar, tool bar, or
any
other means that uses a macro or VBA code to save. you can prevent the
automatic save at the form level by writing code in the form's
BeforeUpdate
event.

as for *why* you would want to, or need to - well, there could be a lot of
reasons, just depends on the situation. if your users don't have a
specific
need for a Save button, just don't put one on the form.

hth


"H E Johnson" wrote in message
...
I just want to know what exactly is the functionality of having a "save
record" option when using the Button Wizard? Doesn't Access automatically
save each field in your form once you tab/click out of it? I didn't think
there was any way to stop this "auto-saving" so why is there a "Save

Record"
command?





  #4  
Old June 10th, 2009, 02:29 PM posted to microsoft.public.access.forms
H E Johnson[_2_]
external usenet poster
 
Posts: 3
Default "Save Record" Command Button

And there is no way to stop this auto-saving, is there?

"BruceM" wrote:

In my experience some users just want to see a Save button. They are in the
habit of saving with Word, Excel, et al, so they want to do the same with
Access. No amount of explanation about Access saving automatically will
satisfy them. If a button already has the effect of saving the record (e.g.
a New Record button) I sometimes just add Save to the label or caption. On
a form for data entry only I tend to label the New Record button as the Save
button, even though the code behind the button advances to a new record
rather than explicitly saving.

"tina" wrote in message
...
when you enter table data via a form, Access doesn't save field data
individually - it saves an entire record when you move to another record,
move between a mainform and subform, close the form, set the Dirty
property
to False, or explicitly save the record from the menu bar, tool bar, or
any
other means that uses a macro or VBA code to save. you can prevent the
automatic save at the form level by writing code in the form's
BeforeUpdate
event.

as for *why* you would want to, or need to - well, there could be a lot of
reasons, just depends on the situation. if your users don't have a
specific
need for a Save button, just don't put one on the form.

hth


"H E Johnson" wrote in message
...
I just want to know what exactly is the functionality of having a "save
record" option when using the Button Wizard? Doesn't Access automatically
save each field in your form once you tab/click out of it? I didn't think
there was any way to stop this "auto-saving" so why is there a "Save

Record"
command?






  #5  
Old June 10th, 2009, 05:35 PM posted to microsoft.public.access.forms
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default "Save Record" Command Button

The form's BeforeUpdate event will fire before the data's saved. In theory,
you could cancel the event unless they've used the Save button, but
realistically you're better living with the rules of Access. (You can also
used unbound forms, but they involve far more coding)

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"H E Johnson" wrote in message
...
And there is no way to stop this auto-saving, is there?

"BruceM" wrote:

In my experience some users just want to see a Save button. They are in
the
habit of saving with Word, Excel, et al, so they want to do the same with
Access. No amount of explanation about Access saving automatically will
satisfy them. If a button already has the effect of saving the record
(e.g.
a New Record button) I sometimes just add Save to the label or caption.
On
a form for data entry only I tend to label the New Record button as the
Save
button, even though the code behind the button advances to a new record
rather than explicitly saving.

"tina" wrote in message
...
when you enter table data via a form, Access doesn't save field data
individually - it saves an entire record when you move to another
record,
move between a mainform and subform, close the form, set the Dirty
property
to False, or explicitly save the record from the menu bar, tool bar, or
any
other means that uses a macro or VBA code to save. you can prevent the
automatic save at the form level by writing code in the form's
BeforeUpdate
event.

as for *why* you would want to, or need to - well, there could be a lot
of
reasons, just depends on the situation. if your users don't have a
specific
need for a Save button, just don't put one on the form.

hth


"H E Johnson" wrote in message
...
I just want to know what exactly is the functionality of having a
"save
record" option when using the Button Wizard? Doesn't Access
automatically
save each field in your form once you tab/click out of it? I didn't
think
there was any way to stop this "auto-saving" so why is there a "Save
Record"
command?







  #6  
Old June 12th, 2009, 01:07 AM posted to microsoft.public.access.forms
tina
external usenet poster
 
Posts: 1,997
Default "Save Record" Command Button

yes, as i said in my previous post: by writing code in the form's
BeforeUpdate event procedure.

hth


"H E Johnson" wrote in message
...
And there is no way to stop this auto-saving, is there?

"BruceM" wrote:

In my experience some users just want to see a Save button. They are in

the
habit of saving with Word, Excel, et al, so they want to do the same

with
Access. No amount of explanation about Access saving automatically will
satisfy them. If a button already has the effect of saving the record

(e.g.
a New Record button) I sometimes just add Save to the label or caption.

On
a form for data entry only I tend to label the New Record button as the

Save
button, even though the code behind the button advances to a new record
rather than explicitly saving.

"tina" wrote in message
...
when you enter table data via a form, Access doesn't save field data
individually - it saves an entire record when you move to another

record,
move between a mainform and subform, close the form, set the Dirty
property
to False, or explicitly save the record from the menu bar, tool bar,

or
any
other means that uses a macro or VBA code to save. you can prevent the
automatic save at the form level by writing code in the form's
BeforeUpdate
event.

as for *why* you would want to, or need to - well, there could be a

lot of
reasons, just depends on the situation. if your users don't have a
specific
need for a Save button, just don't put one on the form.

hth


"H E Johnson" wrote in message
...
I just want to know what exactly is the functionality of having a

"save
record" option when using the Button Wizard? Doesn't Access

automatically
save each field in your form once you tab/click out of it? I didn't

think
there was any way to stop this "auto-saving" so why is there a "Save
Record"
command?







  #7  
Old September 16th, 2009, 04:24 AM posted to microsoft.public.access.forms
mayshara
external usenet poster
 
Posts: 1
Default "Save Record" command button

i wonder if it's possible to have one "SAVE" button in a form that does the saving for all (all changes in any field). i've tried the BeforeUpdate event procedure as advised but i find it troublesome since the save window (asking if i want to save or not) pop-ups everytime i move the cursor (even if i clicked anywhere on the form) and i haven't done updating the rest of the form yet. any help would be highly appreciated. :-)



Posted as a reply to:

"Save Record" Command Button

yes, as i said in my previous post: by writing code in the form's
BeforeUpdate event procedure.

hth


"H E Johnson" wrote in message
...
the
with
(e.g.
On
Save
record,
or
lot of
"save
automatically
think

EggHeadCafe - Software Developer Portal of Choice
WCF Workflow Services Using External Data Exchange
http://www.eggheadcafe.com/tutorials...vices-usi.aspx
  #8  
Old September 16th, 2009, 04:37 AM posted to microsoft.public.access.forms
Jeanette Cunningham
external usenet poster
 
Posts: 2,190
Default "Save Record" command button

Hi mayshara,
the save window only pops up after you have made changes to the design of
the form in form view, or changes to the code. Is this what you were doing
just before the save window popped up?



Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia



mayshara wrote in message ...
i wonder if it's possible to have one "SAVE" button in a form that does the
saving for all (all changes in any field). i've tried the BeforeUpdate
event procedure as advised but i find it troublesome since the save window
(asking if i want to save or not) pop-ups everytime i move the cursor (even
if i clicked anywhere on the form) and i haven't done updating the rest of
the form yet. any help would be highly appreciated. :-)



Posted as a reply to:

"Save Record" Command Button

yes, as i said in my previous post: by writing code in the form's
BeforeUpdate event procedure.

hth


"H E Johnson" wrote in message
...
the
with
(e.g.
On
Save
record,
or
lot of
"save
automatically
think

EggHeadCafe - Software Developer Portal of Choice
WCF Workflow Services Using External Data Exchange
http://www.eggheadcafe.com/tutorials...vices-usi.aspx



  #9  
Old September 16th, 2009, 04:38 AM posted to microsoft.public.access.forms
Gina Whipp
external usenet poster
 
Posts: 3,500
Default "Save Record" command button

mayshara,

Why would you need a Save button? Basically, the record is *saved* once the
field has data entered. While you can Undo the record because it is not yet
*committed* to the table until you go to the next record which, in essence,
*saves* it. So perhaps you should explain what it is you are trying to
accomplish...

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

mayshara wrote in message ...
i wonder if it's possible to have one "SAVE" button in a form that does the
saving for all (all changes in any field). i've tried the BeforeUpdate
event procedure as advised but i find it troublesome since the save window
(asking if i want to save or not) pop-ups everytime i move the cursor (even
if i clicked anywhere on the form) and i haven't done updating the rest of
the form yet. any help would be highly appreciated. :-)



Posted as a reply to:

"Save Record" Command Button

yes, as i said in my previous post: by writing code in the form's
BeforeUpdate event procedure.

hth


"H E Johnson" wrote in message
...
the
with
(e.g.
On
Save
record,
or
lot of
"save
automatically
think

EggHeadCafe - Software Developer Portal of Choice
WCF Workflow Services Using External Data Exchange
http://www.eggheadcafe.com/tutorials...vices-usi.aspx



  #10  
Old September 16th, 2009, 04:38 AM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default "Save Record" command button

On Tue, 15 Sep 2009 20:24:55 -0700, mayshara wrote:

i wonder if it's possible to have one "SAVE" button in a form that does the saving for all

(all changes in any field). i've tried the BeforeUpdate event procedure as
advised but i find it troublesome since the save window (asking if i want to
save or not) pop-ups everytime i move the cursor (even if i clicked anywhere
on the form) and i haven't done updating the rest of the form yet. any help
would be highly appreciated. :-)

Yes. You can use either a Macro, using the Command action, SaveRecord as the
parameter; or VBA code in the button's Click event:

Private Sub cmdSave_Click(*)
DoCmd.RunCommand acCmdSaveRecord
End Sub

Either will trigger the form's Before Update event, which might have
validation code or whatever else you put there.

--

John W. Vinson [MVP]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:46 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.