OK I thought that was a universal abbreviation, apparently maybe its only around Oklahoma that DL stands for "Driver's License" so the DLNumber field is their driver's license number, which cannot change! I originally just used an excel spreadsheet and manually typed them in to send the PIN numbers to the fuel card company. I was just thinking since the data was derived from another field in the database that I should use VBA or a calculated query field to generate the PIN in the database.
As I said in the first post, I was trying to use the
Code:
PIN: Right([DLNumber], 4)
calculation in a query.
But if the first digit of those 4 is a 0 I need to substitute a 1 in it's place.