You could use the Before Update event of the form to check whether the combination of the 5 fields occurs in the table for values of the autonumber field <> the value of the autonumber field in the current record.
If so, display your own message and set Cancel to True.
Regards, Hans Vogelaar (https://www.eileenslounge.com)