Hello,
I currently have a functioning Data Entry form (frmForm) with a combination of text boxes and combo boxes.
I also have a separate user-form seen below (frmMatrix) where the user enters the current heat index and selects a Population of Interest, and is then returned with a message box of recommended protective measures.
I have another message box that follows, asking if the user would like to make a record in my Data Entry form (frmForm). Upon selecting yes, the Data Entry form is opened for the user.
What I am trying to accomplish is to have the "Heat Index" and "Population of Interest" fields automatically filled with the responses previously given by the user as seen below. I am running into an issue where the presetting of values is one step behind and uses the Heat Index and Population values from 2 entries ago, not the last one.
I've verified that my "index" and "population" variables are correctly updating each time the frmMatrix form is used, so something seems to be going wrong when presetting the values in frmForm. I'm not sure if maybe I need to add code to erase the previous values or something.
Here is my code:
Thanks in advance for the help.
I currently have a functioning Data Entry form (frmForm) with a combination of text boxes and combo boxes.
I also have a separate user-form seen below (frmMatrix) where the user enters the current heat index and selects a Population of Interest, and is then returned with a message box of recommended protective measures.
I have another message box that follows, asking if the user would like to make a record in my Data Entry form (frmForm). Upon selecting yes, the Data Entry form is opened for the user.
What I am trying to accomplish is to have the "Heat Index" and "Population of Interest" fields automatically filled with the responses previously given by the user as seen below. I am running into an issue where the presetting of values is one step behind and uses the Heat Index and Population values from 2 entries ago, not the last one.
I've verified that my "index" and "population" variables are correctly updating each time the frmMatrix form is used, so something seems to be going wrong when presetting the values in frmForm. I'm not sure if maybe I need to add code to erase the previous values or something.
Here is my code:
Thanks in advance for the help.