On my delete button, I have a message box come up asking if they are sure they want to delete, yes or no, and the according action is taken.
My problem is that when the database is empty, I have another message box come up saying that the database is empty and that there are no records. The problem is, the message box asking whether they are sure they want to delete still comes up, and should not come up in the instance that the database is empty.
Also, when the record deletes, and is at EOF, it is set to move previous, well if it is empty, it can not move to the previous record and results in an error message, how do I fix this?
Thank you
My problem is that when the database is empty, I have another message box come up saying that the database is empty and that there are no records. The problem is, the message box asking whether they are sure they want to delete still comes up, and should not come up in the instance that the database is empty.
Also, when the record deletes, and is at EOF, it is set to move previous, well if it is empty, it can not move to the previous record and results in an error message, how do I fix this?
Thank you