datum in bestandnaam
Ik heb het zelfde probleem maar ik kom niet uit de beschreven oplossing.
De VBA code is momenteel:
Option Compare Database
'------------------------------------------------------------
' BackupPlanco
'
'------------------------------------------------------------
Function BackupPlanco()
On Error GoTo BackupPlanco_Err
DoCmd.OutputTo acOutputQuery, "Q planco (PEOPLESOFT)", "ExcelWorkbook(*.xlsx)", "R:\CE\ALG\Planning en Control\Deelnemers\1112\Tellingen\Studenten\telling.xlsx", False, "", , acExportQualityScreen
BackupPlanco_Exit:
Exit Function
BackupPlanco_Err:
MsgBox Error$
Resume BackupPlanco_Exit
End Function
Hoe kan ik zorgen dat het bestandje telling.xlsx de naam krijgt telling25082011.xlsx en morgen telling26082011?