Brandon,
I asked you some questions in my previous post on this subject. What does a record contain? The check only or we are trying to match a scan assigned number with the correct client record? My previous post to this question:
Aren't we all a little confused?
In your previous post you mentioned using the client's name and DL number for a filename. Now you want the scanner to assign it. I still don't know your business needs enough to understand how you work and then suggest a solution.
I'll take a stab though. How do the checks come in to you 100's at a time in alphabetical order? Wouldn't there be more names in the database then checks to be scanned? In otherwords, couldn't a Smith client exist in the database yet no Smith check is being scanned?
If you are entering this information in off the check prior to scanning and this is why you are sure the client and the check for the client exists, this same process surely happens on an almost daily bases. So what happens when you enter a John Smith today, and tomorrow you enter a James Smith. How would a script know which record to go to to create a file name that would point to the automated file name created by the scanner? It could be I'm confused on the method of your madness and it could be it just won't work the way we are approaching this.
I thought you were on the right track before with a unique file name sequence, last-first-check number. For what you are doing, maybe this doesn't work at all.
Tell me more about the process of your business doings answering a few of the above questions. I'm sure there is an answer but I need to understand the question better.
//I asked these question to better understand the needs you will have of a script to locate the correct record and assign the correct value for the scan check.
Marty