I have a form that allows users to enter their tasks and hours.
The fields are:
Task (list box for users to select a task)
Hours for each day of the week (allows the users to enter the amount of hours with associated task – HoursSun, HoursMon, HoursTue, etc.,)
The form is a Multiple items form where the user can start a new record by selecting another task field (below the current record on the form)
I have created a trigger and Msgbox that will not allow the users to save a task without entering hours and also will not allow a user to save hours without entering a task. I want to avoid incomplete records.
I am having a user when the user tries to save a record with only the hours entered and not an associated task. The Msgbox appears to inform the user that a task and hours are required to save the record.
After the Msgbox, when the user selects a task from the list box, the form doesn’t recognize that a task is in the field. The user continues to get the Msgbox that a task is missing. The user has to select the next record on the form in order for the form to recognize that the task field is not null.
How can I get the form to recognize that data is actually in that field so the user will not receive the Msgbox?
The fields are:
Task (list box for users to select a task)
Hours for each day of the week (allows the users to enter the amount of hours with associated task – HoursSun, HoursMon, HoursTue, etc.,)
The form is a Multiple items form where the user can start a new record by selecting another task field (below the current record on the form)
I have created a trigger and Msgbox that will not allow the users to save a task without entering hours and also will not allow a user to save hours without entering a task. I want to avoid incomplete records.
I am having a user when the user tries to save a record with only the hours entered and not an associated task. The Msgbox appears to inform the user that a task and hours are required to save the record.
After the Msgbox, when the user selects a task from the list box, the form doesn’t recognize that a task is in the field. The user continues to get the Msgbox that a task is missing. The user has to select the next record on the form in order for the form to recognize that the task field is not null.
How can I get the form to recognize that data is actually in that field so the user will not receive the Msgbox?