Hello
I am having a problem deleting the last record from a form in my database.
My database is setup with a one-to-many relationship.
Main table:
Autonumber
JobID
JobDetails table:
Autonumber
JobID
ToShop
Submitted
Etc....etc.
The form uses a combo box to select the job and displays the details of the job in a tabbed subform.
The delete button will allow me to delete all jobs (master records) previous to the last job (which is the newest job). However when I want to delete the last job (job at the bottom of the combo box) it wont allow me to do so. There can be jobs above the one I want to delete and it still wont act upon it.
Additionally when I add a new job from a different form, the details located in the subform (for the previously listed job) are carried over to the new one. Consequently the details for the job next to last are lost.
Any idea of how I fix these two issues?
I can zip up the database if you need it.
Thank you for your time.
Ian
I am having a problem deleting the last record from a form in my database.
My database is setup with a one-to-many relationship.
Main table:
Autonumber
JobID
JobDetails table:
Autonumber
JobID
ToShop
Submitted
Etc....etc.
The form uses a combo box to select the job and displays the details of the job in a tabbed subform.
The delete button will allow me to delete all jobs (master records) previous to the last job (which is the newest job). However when I want to delete the last job (job at the bottom of the combo box) it wont allow me to do so. There can be jobs above the one I want to delete and it still wont act upon it.
Additionally when I add a new job from a different form, the details located in the subform (for the previously listed job) are carried over to the new one. Consequently the details for the job next to last are lost.
Any idea of how I fix these two issues?
I can zip up the database if you need it.
Thank you for your time.
Ian