S
Steven
I have a form that I with a RecordSource of Table1 with Fields: Field1,
Field2, Field3, Field4. The Form's Additions is set to Yes. Table1 has an
index set of Field1 + Field2 and Unique set to Yes. In addition, Field 3
cannot be Null. If I add a new record using the form that is a duplicate or
Field3 Null then the system returns an error message. I do not want the
system message to return but I would like to just show my own message and not
show the system message and then also erase the data in the new record the
user was attempting to add. I don't need any specific itemized message
identifying whether the error was a duplicate or caused by Field3 being Null.
I just need a simple message like: "Cannot Add New Record: Either Field1 +
Field2 already exist OR Field3 is null. Please correct and retry."
I have tried this on my own but have been unsuccessful. How is this done?
Thank you for your help,
Steven
Field2, Field3, Field4. The Form's Additions is set to Yes. Table1 has an
index set of Field1 + Field2 and Unique set to Yes. In addition, Field 3
cannot be Null. If I add a new record using the form that is a duplicate or
Field3 Null then the system returns an error message. I do not want the
system message to return but I would like to just show my own message and not
show the system message and then also erase the data in the new record the
user was attempting to add. I don't need any specific itemized message
identifying whether the error was a duplicate or caused by Field3 being Null.
I just need a simple message like: "Cannot Add New Record: Either Field1 +
Field2 already exist OR Field3 is null. Please correct and retry."
I have tried this on my own but have been unsuccessful. How is this done?
Thank you for your help,
Steven