paulS30berks
Registered User.
- Local time
- Today, 05:15
- Joined
- Jul 19, 2005
- Messages
- 116
Wondered if someone could assist me.
I am exporting a query into a .csv file using the following:
Private Sub Output_To_CSV_File_Click()
On Error GoTo Err_export_Click
Dim AString As String
AString = "Export_Occupancy_"
DoCmd.TransferText acExportDelim, "", "ChildCare Vouchers For Accor", "\\uk.michaelpage.local\dfs\GroupData\NSCH\Elite Database Reports\ChildCare.csv" & AString & Format(date, "YYYY_MMDD") & Format(Time, "-HH_MM") & ".csv", True
Exit_export_Click:
Exit Sub
Err_export_Click:
MsgBox Err.Description
Resume Exit_export_Click
End Sub
This works fine, however the date format within my output file appears as:
13/05/1963 00:00:00
I wish this to be just 13/05/1963. I have formatted date etc. Is there something else I have overlooked?
Thanks
I am exporting a query into a .csv file using the following:
Private Sub Output_To_CSV_File_Click()
On Error GoTo Err_export_Click
Dim AString As String
AString = "Export_Occupancy_"
DoCmd.TransferText acExportDelim, "", "ChildCare Vouchers For Accor", "\\uk.michaelpage.local\dfs\GroupData\NSCH\Elite Database Reports\ChildCare.csv" & AString & Format(date, "YYYY_MMDD") & Format(Time, "-HH_MM") & ".csv", True
Exit_export_Click:
Exit Sub
Err_export_Click:
MsgBox Err.Description
Resume Exit_export_Click
End Sub
This works fine, however the date format within my output file appears as:
13/05/1963 00:00:00
I wish this to be just 13/05/1963. I have formatted date etc. Is there something else I have overlooked?
Thanks