M
MARs
I'm using code I've found around this newsgroup and elsewhere to automate
printing my Access reports to PDF. I need help when it comes to defining the
report path. These are monthly production reports that go to a location that
changes each month. The folders are named 2006_01, 2006_02, 2006_03 etc..
They update each month for the preceding month. So at the beginning of next
month they will need to save to the folder 2006_03 (We produce reports within
the first 15 days for the previous month).
It will need to look at the month of today's date to determine whether it's
January so it can set the year to the previous year. It will need to check
if the day of the month is less than 15. If so the month of the folder is
the previous month. If it's greater than 15 it would be the current month.
Does anyone know how to code this in VB or have similar code that I might be
able to use to figure it out?
Thanks,
MARs
printing my Access reports to PDF. I need help when it comes to defining the
report path. These are monthly production reports that go to a location that
changes each month. The folders are named 2006_01, 2006_02, 2006_03 etc..
They update each month for the preceding month. So at the beginning of next
month they will need to save to the folder 2006_03 (We produce reports within
the first 15 days for the previous month).
It will need to look at the month of today's date to determine whether it's
January so it can set the year to the previous year. It will need to check
if the day of the month is less than 15. If so the month of the folder is
the previous month. If it's greater than 15 it would be the current month.
Does anyone know how to code this in VB or have similar code that I might be
able to use to figure it out?
Thanks,
MARs