Question : output report with date and time stamp

Hello
I have the following code that runs a report called "Commit_Export" and opens the output dialog box and is usually saved in excel. Is there a way to expand on this code so that the file will still output as Commit_Export.xls but also have the date and time next to it... for example
Commit_Export_07-07-10_12:48PM
or something similar to this....
1:
2:
3:
4:
Dim stDocName As String

    stDocName = "Commit_Export"
    DoCmd.OutputTo acReport, stDocName

Answer : output report with date and time stamp

Please check the following 2 group policy settings:
1. Make  sure you do not have the policy configured in User  Configuration ->  Administrative Templates -> System ->  User  Profiles ->  Connect home directory to root of the share.
2. Check that the  setting under Computer Configuration ->  Administrative Templates  -> System ->  Logon -> Always wait for  the network at computer  startup and logon is Enabled.

Random Solutions  
 
programming4us programming4us