This question sounds like a good candidate for a Data Macro. Here's what I came up with:
I also tested this by trying to perform an INSERT from an external program (C#, using ODBC) and the Data Macro works in that context, too:
cmd.CommandText = "INSERT INTO Table1 ([Model], [Serial]) VALUES (?,?)";
cmd.Parameters.AddWithValue("?", "FORKLIFT");
cmd.Parameters.AddWithValue("?", "FL21");
try
{
cmd.ExecuteNonQuery();
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver] Validation failed for FORKLIFT: Serial Number must be five (5) characters long.
When the validation succeeds the record is correctly inserted into the table.