Hello!
When I run the following code:
Private Sub CmdExportFiles_Click()
Dim dbs As Database, tb As TableDef
Set dbs = CurrentDb
For Each tb In dbs.TableDefs
If Left(tb.Name, 4) <> "MSys" Then
DoCmd.TransferText acExportDelim, , _
tb.Name, "S:\shared\sad\tests\" & tb.Name & ".csv", True
End If
On Error Resume Next
Next tb
MsgBox "The tables have all been exported"
End Sub
Everything works fine apart from the dates that are converting in the following format:
17/11/97 00:00:00
I would like to get "dd/mm/yyyy" format.
Any ideas?
Thank you
Silvia
When I run the following code:
Private Sub CmdExportFiles_Click()
Dim dbs As Database, tb As TableDef
Set dbs = CurrentDb
For Each tb In dbs.TableDefs
If Left(tb.Name, 4) <> "MSys" Then
DoCmd.TransferText acExportDelim, , _
tb.Name, "S:\shared\sad\tests\" & tb.Name & ".csv", True
End If
On Error Resume Next
Next tb
MsgBox "The tables have all been exported"
End Sub
Everything works fine apart from the dates that are converting in the following format:
17/11/97 00:00:00
I would like to get "dd/mm/yyyy" format.
Any ideas?
Thank you
Silvia