I need to create a fixed length ID field in our access system (will be exported into the accounts system so needs to be a 5 digit number). Table does not have any records to date. Other than entering the first line manually, is there a piece of code which will check to see if table is empty, if so then start at (e.g. A10001) and then for future entries it adds 1 (A10002, A10003 etc)
Also, would DMax("q_id", "tblAccounts") + 1 recognise the A? So record A99999 would be followed by B10000? (this is not required but might be nice to have, the preceding letter can be dropped if it will cause issues with DMax!)
Thanks in advance!
Also, would DMax("q_id", "tblAccounts") + 1 recognise the A? So record A99999 would be followed by B10000? (this is not required but might be nice to have, the preceding letter can be dropped if it will cause issues with DMax!)
Thanks in advance!