I am a beginner user in MSAccess and VBA code. I'm developing a form for data entry.
I'm using a combo box to select a Task from a table and a cascaded list box to select the Elements from a query based on the selected Task. I have a text box to enter Standards for the selected Element. When the new record is entered into the Standards table, the TaskID and ElementID are also entered into the Standards Table. This is fine, but every time a new record is entered, I have to reselect the Task and Element to enter the next Standard. As there may be more than one Standard for an element, I want the Task with associated TaskID and the Element with associated ElementID to remain until a new Task or a new Element is selected.
How can I maintain the value in the combo box and list box while entering the Standard record?
db example attached.
I'm using a combo box to select a Task from a table and a cascaded list box to select the Elements from a query based on the selected Task. I have a text box to enter Standards for the selected Element. When the new record is entered into the Standards table, the TaskID and ElementID are also entered into the Standards Table. This is fine, but every time a new record is entered, I have to reselect the Task and Element to enter the next Standard. As there may be more than one Standard for an element, I want the Task with associated TaskID and the Element with associated ElementID to remain until a new Task or a new Element is selected.
How can I maintain the value in the combo box and list box while entering the Standard record?
db example attached.
Last edited: