Hi all,
I am trying to generate a date based reference number for deliveries. The reference needs 8 digits; the first 6 from the date and the last 2 as increments from 01.
e.g.
The 3rd delivery today would have the number 31081403
I have a table with:
- ID (Autonumber)
- DeliveryDate (Short Date)
- DeliveredBy (Lookup to couriers)
- Sender (Lookup to suppliers)
- FAO (Lookup to staff)
- SenderRef (Short Text)
- Notes (Long Text)
I then created a query from that table with:
- ID
- DeliveryDate
And the expression:
- DateNum: CStr(Format([DeliveryDate],"ddmmyy"))
This has given me a 6 digit string for the date. Not sure if I've gone down the right track or what to do next!
Any ideas?
Thanks