Hi Bruce,
A simple form where the first field (item no) is validated against the stock table using item number.
But the stock table also has a barcode field, and users need to be able to enter either barcode or item no. in the field.
The code I want to run then looks up first item no, if that fails looks up barcode. If that is found the entered valued is changed to the item no of the found stock item.
So I need to run this code before the standard validation kicks in.
Does that makes sence?
/Poul