Hi all,
I searched but i could not find any code for exporting each record of an access query to a separate text file using a VBA module as suggested in this Microsoft article Outputting one HTML file per record in an Access database at http://office.microsoft.com/en-us/access/HA010345961033.aspx
I managed to adopt the first method (Use a report to output one HTML file per record) but it is not possible to specify a custom name for the exported files.
The second method (Use the VBA PRINT statement to output one HTML file per record) is much more powerful but i could not find any pre-made code example around.
My MS Query is very simple and has just 2 fields (ID, UniversityName). I would like the ID to be the name of the exported html/text files and the UniversityName the content of the exported html/text files. Obiously I would like to generate automatically one separate html/text file for each record.
Is there any pre-made VBA script that can help me achieve this? my knowledge of VBA is very limited.
Thanks heaps for your help,
FF
I searched but i could not find any code for exporting each record of an access query to a separate text file using a VBA module as suggested in this Microsoft article Outputting one HTML file per record in an Access database at http://office.microsoft.com/en-us/access/HA010345961033.aspx
I managed to adopt the first method (Use a report to output one HTML file per record) but it is not possible to specify a custom name for the exported files.
The second method (Use the VBA PRINT statement to output one HTML file per record) is much more powerful but i could not find any pre-made code example around.
My MS Query is very simple and has just 2 fields (ID, UniversityName). I would like the ID to be the name of the exported html/text files and the UniversityName the content of the exported html/text files. Obiously I would like to generate automatically one separate html/text file for each record.
Is there any pre-made VBA script that can help me achieve this? my knowledge of VBA is very limited.
Thanks heaps for your help,
FF