Dan,
I don't know the what the Dmax is for but if you are looking for
concatenation put this in a query:
CostCode: left([area table];2)&right(CostCodeLast3;3)
That should give you the outcome you are looking for.
hth

Signature
Maurice Ausum
> Where is the proper place in my form to add the following
>
[quoted text clipped - 8 lines]
> I know how to combine the last 3 with the first 2 numbers of the area.
> I don't know how to make the code select the next last 3 for area.
dancox - 06 Feb 2008 17:05 GMT
I probably didn't explain clearly. I can do the concatenation, but first I
need to add to the previous number when I add a new record. 001, 002, 003
based on selecting the areas.
I have 10 areas and each starts at 001. I need the form to go find the last
number for that area. ie. 12-301 add new record 12-302.
I
>Dan,
>
[quoted text clipped - 11 lines]
>> I know how to combine the last 3 with the first 2 numbers of the area.
>> I don't know how to make the code select the next last 3 for area.