It is not difficult to create a standard CSV
Set cn = CreateObject("ADODB.Connection")
cn.Open "Provider=Microsoft.Ace.OLEDB.12.0;Data Source=z:Docsest.accdb"
sSQL = "select * into "
sSQL= sSQL & "[text;database=z:docs;FMT=Delimited;HDR=Yes].[csvfile.csv]"
sSQL= sSQL & " from table1"
cn.Execute sSQL
A VBScript file will run quite well from the Task Scheduler.
Edit re comments
If the decimal separator in your locale is a comma, you may run into problems. You can override the Windows locale settings with a schema.ini file, you need only include the name of the file and items you wish to change:
[csvfile.csv]
DecimalSymbol=.
A full list is available form Microsoft: Schema.ini
There is no reason why you should not write the schema.ini in your code prior to export, except be sure not to overwrite existing schemas -- you can append.
You will get information on your system locale from the windows control panel: http://windows.microsoft.com/en-IE/windows7/Change-the-system-locale
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…