I thought htis would be fairly simple, there I go thinking again! Anyway, I have a field called "ETR" in a table called NEWETR1 (this is a string in the format 2003-0001)that i want to increment whenever a new ETR is opened, or in this case whenever this form is opened and then have the data on this form saved back to NEWETR1 as a new record.
To start in ETR properties in Default Value i put ="2003-"+Str(Val(Right(DMax("ETR", "NEWETR",4) +1))
This works but it returns the etr number without the leading zeros i.e. 2003-10 instead of 2003-0010. Also even with this number and I do a requery and it doesn't save to NEWETR1 table??
Any help on this would be greatly appreciated.
Jim
To start in ETR properties in Default Value i put ="2003-"+Str(Val(Right(DMax("ETR", "NEWETR",4) +1))
This works but it returns the etr number without the leading zeros i.e. 2003-10 instead of 2003-0010. Also even with this number and I do a requery and it doesn't save to NEWETR1 table??
Any help on this would be greatly appreciated.
Jim