Assuming that you want the current date and time:
Dim datDateTime As Date
varDateTime = Now()
MkDir "C:\HousAuth\" & Left(cmbHA, 3) & Left(cmbESDStaff, 3) &
Format(varDateTime, "mmddyy") & Format(varDateTime ,"hhnn")
--
Ken Snell
<MS ACCESS MVP>
"Lamar" <(E-Mail Removed)> wrote in message
news:1483001c444e2$19eb1170$(E-Mail Removed)...
> Hello,
>
> When a user hits a cmd button, I want Access to create a
> new folder. I want to name the folder to include date and
> time the end
>
> i.e. Name the folder: SeaRob526041130 with 52604
> meaning 5/26/04 and 1130 meaning 11:30
>
> I know how create new folder but can not add the date and
> time. Is this even possible? See VBA code below. Thanks
> for any help.
>
> MkDir "C:\HousAuth\" & Left(cmbHA, 3) & Left(cmbESDStaff,
> 3)
|