Following what you say. Is it possible for the data in the form buffer to
appear on the form before the info on the form is saved to the new record of
the table that is the record source for the form? Or in other words. Is it
possible to have what is in the buffer appear on the form before the record
is saved?
Ummm... yes. That's the default. You don't need ANY programming to see
the data which will be written to disk!
When you open a bound Form, and type data onto the screen, the form is
*itself* the "buffer". The data is not saved to the database until the
user takes some action to do so, such as moving to another record,
closing the form, or moving the focus to a subform.
It sounds like you're assuming that the data is taken from the form,
stashed somewhere else, and then written to the database. It's not.
The BeforeUpdate event can be used to check that the data currently on
the form is valid; you can refer to the form controls using syntax
like
If IsNull(Me!txtRequiredField) Then
MsgBox "Please fill in this required field", vbOKOnly
Cancel = True ' prevent the form data from being written to disk
Me!txtRequiredField.SetFocus
End If
If the value of the parameter Cancel is set to True, then nothing is
written to disk; if it's False (the default), then whatever is on the
form will be put into the table, and the form's AfterUpdate event will
fire.
John W. Vinson[MVP]