G
Guest
Hey there,
For the past few weeks I've been programming a lot of things with VBA. There
only is one thing that I haven't got a solution for. I've made a script in
VBA which has to add a certain field to a table based upon a date. This date
changes every month.
In the current situation I manually have to adjust this date every month but
I was wondering if there is a way to do this automatically.
Example:
if rec_source![Date] > 20070600 Then
rec_destination[InProcess] = "1"
Else rec_destination[InProcess] = "0"
Because everything that is less than a month old is In Process the date
changes every month. When it's July the date is 20070600. When it's August
the date changes to 20070700.
Does anybody have an idea how I can solve this problem?
Thanks a Lot
For the past few weeks I've been programming a lot of things with VBA. There
only is one thing that I haven't got a solution for. I've made a script in
VBA which has to add a certain field to a table based upon a date. This date
changes every month.
In the current situation I manually have to adjust this date every month but
I was wondering if there is a way to do this automatically.
Example:
if rec_source![Date] > 20070600 Then
rec_destination[InProcess] = "1"
Else rec_destination[InProcess] = "0"
Because everything that is less than a month old is In Process the date
changes every month. When it's July the date is 20070600. When it's August
the date changes to 20070700.
Does anybody have an idea how I can solve this problem?
Thanks a Lot