G
Guest
Hello,
I have an Access query that will return about 4 million records (lines in a
table). How can I export the results into seperate files? Lets say 80 .csv
files with 50,000 rows.
My code is:
Function BigQuery()
Dim path As String
path = AppPath & "BigQuery.csv"
On Error Resume Next
Kill path
On Error GoTo 0
DoCmd.TransferText acExportDelim, , "BigQuery", path, True
If Not NoWarning Then
MsgBox "The BigQuery csv file has been created in " & path
End If
End Function
Any help is appreciated.
I have an Access query that will return about 4 million records (lines in a
table). How can I export the results into seperate files? Lets say 80 .csv
files with 50,000 rows.
My code is:
Function BigQuery()
Dim path As String
path = AppPath & "BigQuery.csv"
On Error Resume Next
Kill path
On Error GoTo 0
DoCmd.TransferText acExportDelim, , "BigQuery", path, True
If Not NoWarning Then
MsgBox "The BigQuery csv file has been created in " & path
End If
End Function
Any help is appreciated.