bradmaunsell
Programmer
I have a table with records conatianing fields for a document code number, document name and other field stuff.
I want to create a recordset selecting some assortment of records.
Next I want to use a "Do until rs.EOF" routine to step through the recordset and execute VBA sub (or function) for each record. The subs stored in a module "WordEndorsementTemplates". There are dozens of templates and I have no problems with the Word routines when run one at a time.
For example, I want the recordset to drive the printing of a form FPE101, a form FPE106 , A form FPE120, etc.
I have failed with RunCode from VBA (I don't want a macro thing).
Thanks,
Brad
South Burlington, VT
I want to create a recordset selecting some assortment of records.
Next I want to use a "Do until rs.EOF" routine to step through the recordset and execute VBA sub (or function) for each record. The subs stored in a module "WordEndorsementTemplates". There are dozens of templates and I have no problems with the Word routines when run one at a time.
For example, I want the recordset to drive the printing of a form FPE101, a form FPE106 , A form FPE120, etc.
I have failed with RunCode from VBA (I don't want a macro thing).
Thanks,
Brad
South Burlington, VT