B
BBC via AccessMonster.com
Two realated questions
1) Does setting default values in a forms properties cause it to be dirty
when a new record is created (DoCmd.GoToRecd ... acnewrec) especially without
triggering form_dirty. I have a form that goes dirty before I enter any data
and cannot track the event down that causing it (I know because it is
inserting the new record's primary keyID almost immediately). If sentence 1
is true can that behaviour be stopped (except by setting them programatically
later in the process ie once a real item is entered).
2) Is there any way to stop Access from saving the record automatically when
it moves to another one (or at least trapping it). As per question "1" above
it thinks it's dirty when I don't think it is or want it to be, and saves a
blank record (except for the defaults) with that "new key" when I attempt to
add another new one. I do have a field in the record that if 0 tells me that
no valid record is in place (ie no customer has be selected via a combobox to
create this new record for.
I use my own record navigation and new/save/undo controls in VBA that are
basically enhanced versions of the standard Nav. macros
Any good reading material on this around?
Appreciate the help.
1) Does setting default values in a forms properties cause it to be dirty
when a new record is created (DoCmd.GoToRecd ... acnewrec) especially without
triggering form_dirty. I have a form that goes dirty before I enter any data
and cannot track the event down that causing it (I know because it is
inserting the new record's primary keyID almost immediately). If sentence 1
is true can that behaviour be stopped (except by setting them programatically
later in the process ie once a real item is entered).
2) Is there any way to stop Access from saving the record automatically when
it moves to another one (or at least trapping it). As per question "1" above
it thinks it's dirty when I don't think it is or want it to be, and saves a
blank record (except for the defaults) with that "new key" when I attempt to
add another new one. I do have a field in the record that if 0 tells me that
no valid record is in place (ie no customer has be selected via a combobox to
create this new record for.
I use my own record navigation and new/save/undo controls in VBA that are
basically enhanced versions of the standard Nav. macros
Any good reading material on this around?
Appreciate the help.