If your serial numbers are always sequential, and your prefix is part specific can you not just have a routine that would automatically number them for you rather than having to rely on a person hand entering a starting and/or ending value?
I do not like bound forms so someone may have a better suggestion than me but I would look at the BEFORE INSERT and/or BEFORE UPDATE events and just look up the most recent part number and increment it by 1 for each element they enter and not have them touch the serial number at all.
So let's say Part A has a serial number prefix of AA, Part B has a serial number prefix of BB and your standard formatting for all part numbers is <prefix>-<incrementing number>
in your BEFORE INSERT event you would have something like
Code:
dim sOldSN, sNewSN as string
dim iSeq
'this domain function assumes ITEM NUMBER is actually a number, insert ' marks before and after the field reference on your form if it's actually a text value
sOldSN = dmax("[Serial_Number]", "Inspection Table", "[Item Number] = " & [Item Number])
'sOldSN = dmax("[Serial_Number]", "Inspection Table", "[Item Number] = '" & [Item Number] & "'") 'THIS IS FOR TEXT VALUE ITEM NUMBERS
iSeq = clng(right(sOldSN, len(sOldSN) - instr(sOldSN, "-"))) + 1
sNewSN = left(sOldSN, instr(sOldSN, "-")) & iseq
[Serial Number] = sNewSN
Secondly a couple of items here.
Do not name your database objects with special characters ( spaces, /, #, %, etc) this can really screw up the functionality of your database over time, spaces are less offensive but any place you have a space you should use an underscore (_).
The way your tables are set up does not look properly normalized to me. Your INSPECTION table should be carrying the ID field of the Customer/Order Info Table, you should not link these two on three fields when 1 will do. You're essentially carrying three times the data as you need to to establish a link.
Finally, do all of your parts require the same tests be done? The way your table is set up they do. If that's not the case, in other words if your parts require different tests but you are attempting to put all possible tests on the same table even if they don't apply, that also is probably not a great setup.