BingeThinker
Programmer
Hi,
Background
----------
I have a database with two tables. One table has families in it and the other table has family members. They family table has a primary key called FamilyID and the member table has a foreign key called FamilyID. There is a one to many relationship (one family to one or more members). I have the table set up so that the primary key FamilyID is an "AutoNumber". I have a query which accesses both tables and this query I use to propagate a form called Family Form.
Problem
-------
What I am having a problem with is if the user hits the escape key after entering some info on the form, it blanks out all of the information that had been entered. Then when they begin to enter info again in the form (without closing the form) the AutoNumber has been incremented! Is there any object (doCmd for example) that will allow me to decrement the AutoNumber or is there a "manual" way of using a counter that can be decremented?
Thanks and I hope I have given enough info
Background
----------
I have a database with two tables. One table has families in it and the other table has family members. They family table has a primary key called FamilyID and the member table has a foreign key called FamilyID. There is a one to many relationship (one family to one or more members). I have the table set up so that the primary key FamilyID is an "AutoNumber". I have a query which accesses both tables and this query I use to propagate a form called Family Form.
Problem
-------
What I am having a problem with is if the user hits the escape key after entering some info on the form, it blanks out all of the information that had been entered. Then when they begin to enter info again in the form (without closing the form) the AutoNumber has been incremented! Is there any object (doCmd for example) that will allow me to decrement the AutoNumber or is there a "manual" way of using a counter that can be decremented?
Thanks and I hope I have given enough info