I have 3 fields on a form:
Start Date/Time
End Date/Time
Hours Length
When a user is on the form, they naturally tab to the Start Date/Time first. On click of that field a mini calendar form pops up for them to choose the date and time.
The same mini form pops up for the End Date/Time.
Because of the information these users have, they will typically have maybe 1 of these pieces of information now, and 1 more later.
We cannot control which they enter first, but once any 2 of those are filled out, we want the calculate the 3rd based on the 2 that are entered. Make sense?
So, if...
1) Start Date/Time is filled out, and End Date/Time is filled out, then we need to calculate Hours Length between those two.
2) Start Date/Time is filled out, and Hours Length is filled out, then we need to calculate End Date/Time as the Start Date/Time plus Hours Length.
3) End Date/Time is filled out, and Hours Length is filled out, then we need to calculate Start Date/Time as the End Date/Time minus Hours Length.
I want to have this form auto update which ever field can calculate at any time. We store the information in fields so we can run reports later and not have to worry about all of these calculations.
Any ideas how I can do this, please?
I'm hoping this will be a fun challenge!!!
misscrf
It is never too late to become what you could have been ~ George Eliot
Start Date/Time
End Date/Time
Hours Length
When a user is on the form, they naturally tab to the Start Date/Time first. On click of that field a mini calendar form pops up for them to choose the date and time.
The same mini form pops up for the End Date/Time.
Because of the information these users have, they will typically have maybe 1 of these pieces of information now, and 1 more later.
We cannot control which they enter first, but once any 2 of those are filled out, we want the calculate the 3rd based on the 2 that are entered. Make sense?
So, if...
1) Start Date/Time is filled out, and End Date/Time is filled out, then we need to calculate Hours Length between those two.
2) Start Date/Time is filled out, and Hours Length is filled out, then we need to calculate End Date/Time as the Start Date/Time plus Hours Length.
3) End Date/Time is filled out, and Hours Length is filled out, then we need to calculate Start Date/Time as the End Date/Time minus Hours Length.
I want to have this form auto update which ever field can calculate at any time. We store the information in fields so we can run reports later and not have to worry about all of these calculations.
Any ideas how I can do this, please?
I'm hoping this will be a fun challenge!!!
misscrf
It is never too late to become what you could have been ~ George Eliot