K
Kokanutt
I have a code that names a txt file with year and julian date before export.
the naming convention includes the current year. But I only need the last
digit of the year i.e. instead of VHMC200850.txt i need VHMC850. Where "8"
is the 1 digit year and "50" is the Julian date. But i only need the 8 until
2010 then i will need the two digit year. Also when i use just "y" i get the
serial number i.e. VHMC5050. Please advise. See codes below.
DoCmd.TransferText acExportFixed, "ACR Export Specification", "Qry1",
"C:\Documents\VHCN" & Format(Now, "yy") & ((DateDiff("d", Now,
DateSerial(Year(Date), 1, 1)) - 1) * -1) & ".txt", False .......this gives
VHCN0850
the naming convention includes the current year. But I only need the last
digit of the year i.e. instead of VHMC200850.txt i need VHMC850. Where "8"
is the 1 digit year and "50" is the Julian date. But i only need the 8 until
2010 then i will need the two digit year. Also when i use just "y" i get the
serial number i.e. VHMC5050. Please advise. See codes below.
DoCmd.TransferText acExportFixed, "ACR Export Specification", "Qry1",
"C:\Documents\VHCN" & Format(Now, "yy") & ((DateDiff("d", Now,
DateSerial(Year(Date), 1, 1)) - 1) * -1) & ".txt", False .......this gives
VHCN0850