The only issue I see is that
tblFields(1, "FIELDNAME") = "CALID"
should be
tblFields(2, "FIELDNAME") = "CALID"
Other than that, I am using the code pretty much the way it is written, except that I have made a function call for each table read.
The only issue I see is that
tblFields(1, "FIELDNAME") = "CALID"
should be
tblFields(2, "FIELDNAME") = "CALID"
Other than that, I am using the code pretty much the way it is written, except that I have made a function call for each table read.