Dim oADO : Set oADO = CreateObject("ADODB.Connection")
oADO.Open "your connection string"
Set oRS = oADO.Execute("SELECT stuff FROM table")
If Not oRS.EOF Then sCSV = oRS.GetString(,,",",vbCrLf)
oRS.Close : Set oRS = Nothing
oADO.Close : Set oADO = Nothing
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oFile = oFSO.CreateTextFile("C:\Path\file.csv")
oFile.Write sCSV
oFile.Close : Set oFile = Nothing
Set oFSO = Nothing
Ray at work
"Gaffar" <ga****@nannacomputers.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hello,
how to export ms-access tables information to excel sheet using ASP.
please give sample code.
it is very urgent to me or if u have no idea please give any news group to
solve my question's answer.
Thanks in advance.
Gaffar.