So.. I've been trying to create a form that auto-advances a record number.
To do it, I simply put a formula of:
=Year(Date()) & "-" & [ID]
..where [ID] is simply an autonumber for the table I'm using.
The expected result would be: 2009-1, 2009-2, 2009-3, etc.
My issue is that it will populate the field properly on the form, but it won't pass that value to the actual field for use later.
I've tried to make this a default value in the field, but it doesn't populate the field properly - I will end up with simply "2009-" because (I've deduced) at the time the field is auto-populated, the value of [ID] is blank. It doesn't fill that value in until I start to enter data on that particular form.
I'm not a complete MS Access Noob... but not far from it, either.
Is there a simple code to have it pass the string to the field?
Thanks!
To do it, I simply put a formula of:
=Year(Date()) & "-" & [ID]
..where [ID] is simply an autonumber for the table I'm using.
The expected result would be: 2009-1, 2009-2, 2009-3, etc.
My issue is that it will populate the field properly on the form, but it won't pass that value to the actual field for use later.
I've tried to make this a default value in the field, but it doesn't populate the field properly - I will end up with simply "2009-" because (I've deduced) at the time the field is auto-populated, the value of [ID] is blank. It doesn't fill that value in until I start to enter data on that particular form.
I'm not a complete MS Access Noob... but not far from it, either.
Is there a simple code to have it pass the string to the field?
Thanks!