Hello,
I'm stuck on I would think a fairly simple compare. I'm trying to create an If Then statement that will compare a date. I was hoping that this would work...
Dim strFileDate as string
Dim strFileDate2 as string
strFileDate = Format(Date, "YYYYMMDD")
strFileDate2 = Format(Date, "2012MMDD")
If strFileDate = strFileDate2 then 'place into whatever designated folder according to the year
Now I know that theres something wrong with the strFileDate2. Anyone have advice or another way to do this?
I'm stuck on I would think a fairly simple compare. I'm trying to create an If Then statement that will compare a date. I was hoping that this would work...
Dim strFileDate as string
Dim strFileDate2 as string
strFileDate = Format(Date, "YYYYMMDD")
strFileDate2 = Format(Date, "2012MMDD")
If strFileDate = strFileDate2 then 'place into whatever designated folder according to the year
Now I know that theres something wrong with the strFileDate2. Anyone have advice or another way to do this?