I really want to create a primary key similar to D-1001where part is "text" and the other part is "numberic", but I found an sample code that will give the results that I am after. But I do not fully understand what's going on here.
Private SomeField_AfterUpdate()
Dim StrMax as String
strMax=DMax("FOO","FOOTable"
me!HiddenFooCrl = "REC-" &
right(strMax,_
len(strMax)-_
Instr(1,strMax,"-")+1
End Sub
1. Can someone tell how the process works?
2. Is there another method to use that may have more clarity than this?
I appreciate any all the help I can get in trying to comprehend this process.
Private SomeField_AfterUpdate()
Dim StrMax as String
strMax=DMax("FOO","FOOTable"
me!HiddenFooCrl = "REC-" &
right(strMax,_
len(strMax)-_
Instr(1,strMax,"-")+1
End Sub
1. Can someone tell how the process works?
2. Is there another method to use that may have more clarity than this?
I appreciate any all the help I can get in trying to comprehend this process.