M
Mark S
In a database I inherited, there is separate Edit form and Add form for
single record adds or edits. Since the forms are similar, I assume the
better way to do this would be with a single form and use the DataMode in the
OpenForm Method.
There are some minor differences between the forms with some button
differences and a few fields that don't need to be seen on a new record.
Is my assumption correct that it is normally best to use a single form for
Edit and Add? How do you test to see how a form was opened (what DataMode is
it in)? Or is it better to send a flag with OpenArgs?
My thought is once I test for how the form was opened, just set the controls
I want as Visible (or not). Is it best to do this in the code that opened
the data entry form or in the On Open (or other) event in the data entry form
itself.
I hope it makes sense what I am trying to do. If I am not asking the right
questions please make any suggestions.
single record adds or edits. Since the forms are similar, I assume the
better way to do this would be with a single form and use the DataMode in the
OpenForm Method.
There are some minor differences between the forms with some button
differences and a few fields that don't need to be seen on a new record.
Is my assumption correct that it is normally best to use a single form for
Edit and Add? How do you test to see how a form was opened (what DataMode is
it in)? Or is it better to send a flag with OpenArgs?
My thought is once I test for how the form was opened, just set the controls
I want as Visible (or not). Is it best to do this in the code that opened
the data entry form or in the On Open (or other) event in the data entry form
itself.
I hope it makes sense what I am trying to do. If I am not asking the right
questions please make any suggestions.