Question Locked

VB6

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have an application where data is displayed to a datagrid from Access Database. I would like to output the data to ms excel file and also to a text file. How can this be done in Visual Basic 6?

2 replies

by onbliss

Use ADO to open Excel and text files. Use the appropriate drivers. Then you can write the datagrid contents to these file. If you do not have the recordset containing the data, create one from the grid and write it out to the desired file.

This discussion is closed to new replies.