NewShortStuff
MIS
I created a database for data entry. I have selected three fields as primary keys to avoid duplicates. These fields are [Month], [Lease], and [Amount].
For every month I enter an amount for a lease with a data entry form, which opens in add mode. I have a text box for the month and I select the lease from a combo box.
Sometimes I have two amounts for a lease in one month.
When I go to add a new record and if the record already exists, I get the error message, "The changes you requested to the table were not successful because they will create duplicate values in primary key." I want to customise the message to read, "Record Already exists, do you want to edit existing record?"
I then want to go to the record and open it in edit mode to make changes.
I hope this is possible.
Thanks in advance
For every month I enter an amount for a lease with a data entry form, which opens in add mode. I have a text box for the month and I select the lease from a combo box.
Sometimes I have two amounts for a lease in one month.
When I go to add a new record and if the record already exists, I get the error message, "The changes you requested to the table were not successful because they will create duplicate values in primary key." I want to customise the message to read, "Record Already exists, do you want to edit existing record?"
I then want to go to the record and open it in edit mode to make changes.
I hope this is possible.
Thanks in advance