Hi,
I am trying to generate a new field with a unique number. I have used the number from the ID field (this is an autonumer and key) and the initials of the first and last name field and I would like to add the year at the end.
I can get it to work with the whole date but have got stuck now. Can anyone help me with the last bit please - this is what I have but instead of the date at the end I would like the year so my unique number might look like 1AG2009
2PM2009
etc
This is the code I am using in the query
Unique Number: [ID]&""&Left([FirstName],1)&""&Left([LastName],1)&""&Date()
Thanks
Adrian
I am trying to generate a new field with a unique number. I have used the number from the ID field (this is an autonumer and key) and the initials of the first and last name field and I would like to add the year at the end.
I can get it to work with the whole date but have got stuck now. Can anyone help me with the last bit please - this is what I have but instead of the date at the end I would like the year so my unique number might look like 1AG2009
2PM2009
etc
This is the code I am using in the query
Unique Number: [ID]&""&Left([FirstName],1)&""&Left([LastName],1)&""&Date()
Thanks
Adrian