cmdSave saves everything?

L

Lungta

Hi, sorry for the newbie question here...

My main data entry forms all have 1 or 2 subforms (all are 1-many).

What do I add to the code for the main form Save button so it will save
changes on all the subforms too?

Thanks in advance,
 
D

Douglas J. Steele

Assuming you're talking about saving data (as opposed to changes to the form
itself), as soon as you move focus away from a row, it's automatically saved
by Access. In other words, there's probably no need for a Save button at
all.
 
L

Lungta

Hi, Doug,

Thanks for your reply. Just to clarify, is it consistently saved when the
person just stops typing but doesn't move to a new row?

The only reason I'm asking is because the little "edit pencil" is still
showing so I figured that meant the data wasn't necessarily saved. It's
invoice data being captured, so I just want to be sure.
 
D

Douglas J. Steele

It's not saved until focus moves off the row of data.

You're correct that if the edit pencil is still visible, the row hasn't been
saved (or, perhaps it has, but some other change has been made to it since
the last save, which is essentially the same thing)
 
L

Lungta

OK, that's great - so my "Save" button on the main form will be enough.

Thank you very much for your help - I'm learning tons from this forum!
 
Top