S
SnuffTheRooster
I am using Access2003 for this project.
Here’s my problem. I have 40 date fields per record in my table. When the
user navigates to a new record in my main form, I want this code to run. The
code needs to look at each date field (VDate1 through VDate40) and determine
if this person (current record) has visited more than three times in the last
month. If so, I just want to change the background color of a separate
textbox to red. I need this to happen in reverse order though. So when the
user goes to the next record, VDate40 needs to be looked at first because it
would be their most recent visit, if there is not any data entered in this
field, check VDate39 for data and so on until the first VDate(X) field
containing data is found. Once the first field that contains data is found I
need to look at the previous two date fields to determine if that person has
visited three times in the last month.
FieldNames:
VDate1 thru VDate40 are the date fields.
ClientStatus is the name of the textbox that I want the background color to
change to red if they have visited 3 times in the last month.
I hope someone can either help or point me in the right direction. I’m too
embarrassed to show you the weak code I’ve tried to use.
Thank you in advance.
Here’s my problem. I have 40 date fields per record in my table. When the
user navigates to a new record in my main form, I want this code to run. The
code needs to look at each date field (VDate1 through VDate40) and determine
if this person (current record) has visited more than three times in the last
month. If so, I just want to change the background color of a separate
textbox to red. I need this to happen in reverse order though. So when the
user goes to the next record, VDate40 needs to be looked at first because it
would be their most recent visit, if there is not any data entered in this
field, check VDate39 for data and so on until the first VDate(X) field
containing data is found. Once the first field that contains data is found I
need to look at the previous two date fields to determine if that person has
visited three times in the last month.
FieldNames:
VDate1 thru VDate40 are the date fields.
ClientStatus is the name of the textbox that I want the background color to
change to red if they have visited 3 times in the last month.
I hope someone can either help or point me in the right direction. I’m too
embarrassed to show you the weak code I’ve tried to use.
Thank you in advance.