I want to name a file with the yesterday's date. Here's what I've got, but it's giving me an error:
Name "C:\Program Files\OCEAPC Software\oceDatedOutput\Oce.log" As "C:\Program Files\OCEAPC Software\oceDatedOutput\" & DateAdd("d", -1, Date$)& "_" & Format(Time, "hhnn") & "Oce.log"
Any idea what the corretc syntax is?
Name "C:\Program Files\OCEAPC Software\oceDatedOutput\Oce.log" As "C:\Program Files\OCEAPC Software\oceDatedOutput\" & DateAdd("d", -1, Date$)& "_" & Format(Time, "hhnn") & "Oce.log"
Any idea what the corretc syntax is?