Hello there,
I have a little databasesystem, that is 98 % ready. Only this one thing is annoying me out. Lets go for it.
I have a subform with custom browsing buttons(add new rec, go last, go first, go previous, go next).
This subform has also subform, but it doesn't have any browsing buttons. This another subform contains specific info related to this first subform.
At this first subform, there is one field required. Required, by adding a little functionality to check is the field empty, and when it is, do Cancel = True in the BeforeUpdate event.
The problem I have is this:
When I add a new record at this first subform, I don't fill the required field, and I browse to previous record, something extremely odd happens.
(I have Docmd.Gotorecord, , acPrevious coded into previous button.)
When I browse records, and stop to a record, that has something typed into this second subform, and NOW add new record, and don't fill the required field, and try to move to previous record, the program shows and error message.
Cool this far?
This is how this is supposed to happen, nothing more. BUT.
When I added the record, when I was on the record that has something typed onto this second subform, AND now I browsed previous record, the error occurs, AND
those things, texts, information, I typed at this second subform, where I started the adding of new record, were copied to this new record!
This information actually doesn't stay or save there, when I browse off the new record, but when Cancel = True in the BeforeUpdate occurs, it shows this info however just when adding new record and doing the mistake (did not fill the required field).
Most annoying problem... I might place the required thing direct to table, but Access's own error messages aren't so cool.
Do you happen to have any suggestions?
Thank you in advance.
-0200050-
I have a little databasesystem, that is 98 % ready. Only this one thing is annoying me out. Lets go for it.
I have a subform with custom browsing buttons(add new rec, go last, go first, go previous, go next).
This subform has also subform, but it doesn't have any browsing buttons. This another subform contains specific info related to this first subform.
At this first subform, there is one field required. Required, by adding a little functionality to check is the field empty, and when it is, do Cancel = True in the BeforeUpdate event.
The problem I have is this:
When I add a new record at this first subform, I don't fill the required field, and I browse to previous record, something extremely odd happens.
(I have Docmd.Gotorecord, , acPrevious coded into previous button.)
When I browse records, and stop to a record, that has something typed into this second subform, and NOW add new record, and don't fill the required field, and try to move to previous record, the program shows and error message.
Cool this far?
This is how this is supposed to happen, nothing more. BUT.
When I added the record, when I was on the record that has something typed onto this second subform, AND now I browsed previous record, the error occurs, AND
those things, texts, information, I typed at this second subform, where I started the adding of new record, were copied to this new record!
This information actually doesn't stay or save there, when I browse off the new record, but when Cancel = True in the BeforeUpdate occurs, it shows this info however just when adding new record and doing the mistake (did not fill the required field).
Most annoying problem... I might place the required thing direct to table, but Access's own error messages aren't so cool.
Do you happen to have any suggestions?
Thank you in advance.
-0200050-