Hi Cyberdyne,
So here you need to change near everyting ;)
Me![UKey] = Right(Year(Now()), 2) + Nz(DCount("*", "Customers", "UKey Like '" + Right(Year(Now()), 2) + "*'")) + 1
UKey with the name of the field where you want to store your key
Customers with the name of the Table with your clients / Customers
And there is no more to replace ;)
Have a nice day my frien!
I put the code in so that after the very first entry, which is the client first name the after update follows event procedure with the code
Me![UKey] = Right(Year(Now()), 2) + Nz(DCount("*", "Customers", "UKey Like '" + Right(Year(Now()), 2) + "*'")) + 1
but I get an error in the form, do I have to swap Customers with Case# perhaps?
Tried that and still nothing. What fields should I modify in this code?