Took me a while to find the code. We are now getting out data in CSV text files.
In the following code, I cut out a lot of processing and extra lines I couldn't post. Because people have apostrophes in their names, I use a function to double up on the apostrophes
Code:
Function ConvertQuotesSingle(InputVal)
ConvertQuotesSingle = Replace(InputVal, "'", "''")
End Function
My full procedure is about 12 pages long. Here is cut down version to illustrate the inner and outer loops.
I tried putting the code inline, but the post became huge. So it is an attachment.
I would paste the code into a module and look at it..... just a suggestion.... for me the color coding enhances my ability to understand the code.
Don't forget the function above...