I've got a procedure that calls another procedure - currently called OpenMergedDocs()
OpenMergedDocs() calls individually named merge functions for specific documents - ie OpenDoc1, OpenDoc2, OpenDoc3, (up to 25).
It works perfectly.
Now what I need to do is make a separate OpenMergedDocs() procedure for each State - ie OpenMergedDocsAL, OpenMergedDocsAK, etc... That will call different combinations of documents. (we need documents 1,2,3 in AL and 1,3 in AK)
The state is determined by a field value in a recordset. I need a way to basically call OpenMergedDocsXX() where XX is the state. I've tried everything I can think of, but it doesn't seem to like a variable in a call statement.
Any ideas?
OpenMergedDocs() calls individually named merge functions for specific documents - ie OpenDoc1, OpenDoc2, OpenDoc3, (up to 25).
It works perfectly.
Now what I need to do is make a separate OpenMergedDocs() procedure for each State - ie OpenMergedDocsAL, OpenMergedDocsAK, etc... That will call different combinations of documents. (we need documents 1,2,3 in AL and 1,3 in AK)
The state is determined by a field value in a recordset. I need a way to basically call OpenMergedDocsXX() where XX is the state. I've tried everything I can think of, but it doesn't seem to like a variable in a call statement.
Any ideas?