Sometimes the stuff I code can be best described as arcane. Or obtuse. Even better: stuff not many people care about. That's OK, I like it.
Todays topic involves getting the CMRECNUM field from the CM Transaction Entry form in Dynamics GP 10. You can't see the field on the form, only the 'Document Number' (00000000000000005 in the image below); and Document Number is not unique.
This piece of VS Tools code will get that value for you.