D
Dan McClelland
SQL Server 2000 back end and Access XP adp front end.
Objective: User enters a new record and misses a required
field. Application warns user and returns them to the
form to fix their mistake and allow them to continue.
Simple explanation of problem: If I skip any required
fields (bound form), upon attempting to save record, I get
a variety of messages. Then, upon returning to the form,
my newly entered data is gone, was not inserted, and I'm
staring at a blank form and must re-enter. My newly
entered, non-inserted data disappears.
More details, if needed: If tried code in the form's
BeforeUpdate event to stop it from attempting to insert
the record if a required field is blank. I've got code in
the form's OnError event, same reason. I've got code in
the form's OnUnload event to prevent it from closing.
Regardless of what combination of events I trap and how I
handle them, my newly entered data disappears.
Form has been based on a sproc and an SQL statement (I've
tried both). Sproc and SQL statement join a few tables,
but I'm updating only ONE table on the many side, and my
Unique Table property is set.
Objective: User enters a new record and misses a required
field. Application warns user and returns them to the
form to fix their mistake and allow them to continue.
Simple explanation of problem: If I skip any required
fields (bound form), upon attempting to save record, I get
a variety of messages. Then, upon returning to the form,
my newly entered data is gone, was not inserted, and I'm
staring at a blank form and must re-enter. My newly
entered, non-inserted data disappears.
More details, if needed: If tried code in the form's
BeforeUpdate event to stop it from attempting to insert
the record if a required field is blank. I've got code in
the form's OnError event, same reason. I've got code in
the form's OnUnload event to prevent it from closing.
Regardless of what combination of events I trap and how I
handle them, my newly entered data disappears.
Form has been based on a sproc and an SQL statement (I've
tried both). Sproc and SQL statement join a few tables,
but I'm updating only ONE table on the many side, and my
Unique Table property is set.