debbie1212
Programmer
I have a date field that, when filled in, it checks the value in a list box (30, 60 or 90 days), and it calculates the new date and puts it into another field.
And to make things complicated, that new date field also has to check the next list box (30, 60 or 90), and it calculates another new date and puts it into another field. This is all done at once. In other words, the first date field is entered and it goes through and calculates all of the other date fields according to the value in the next record.
For instance:
Date field #1 + Value of list box #1 = Date field #2
Date field #2 + Value of list box #2 = Date field #3
Date field #3 + Value of list box #3 = Date field #4
Date field #4 + Value of list box #4 = Date field #5
and so on.
I know about the DateAdd Function but I'm lost on how to write it so that it takes in a value that is from a list box and then processes all of the calculations as soon as the first field is entered.
Can anyone help? I hope this makes sense.
Thanks.
And to make things complicated, that new date field also has to check the next list box (30, 60 or 90), and it calculates another new date and puts it into another field. This is all done at once. In other words, the first date field is entered and it goes through and calculates all of the other date fields according to the value in the next record.
For instance:
Date field #1 + Value of list box #1 = Date field #2
Date field #2 + Value of list box #2 = Date field #3
Date field #3 + Value of list box #3 = Date field #4
Date field #4 + Value of list box #4 = Date field #5
and so on.
I know about the DateAdd Function but I'm lost on how to write it so that it takes in a value that is from a list box and then processes all of the calculations as soon as the first field is entered.
Can anyone help? I hope this makes sense.
Thanks.