Do not recommend it, but you could theoretically build a table with date field as the Primary Key instead of an autonumber. Set the default value to "now()".
So if you never added records faster than 1 a second you are OK. But this fails as soon as you try an update query, or programmatic recordset manipulation, because records would be added (fail to be added) faster than one a second. But in certain cases it could work.
You could make a query that you use for sorting, and put in a calculated field that concatonates the date and the ID field. Use the STRING() function to pack it with zeros.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244. Basics at
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.