I have two forms, frmEdit and frmAddInmate. On frmEdit there are 2 comboboxes. The first combo box (cmbLogNum) is a list of incidents and from this combo box, the second combo box (cmbCDC2) is populated with the related data to the first combo box.
This is what I need:
I want that when the Not In List event is triggered for the cmbCDC2 a new form opens (frmAddInmate) to add data. I want the data that was entered in cmbCDC2 from the first form to be entered in the combo box on the second form (cmbCDCadd) to make data entry easier. Then I need that when I exit this form and return to the first form, the first form is updated (requeried?)with the new data and then the new data that was entered is selected cmbCDC2 and the whole form updated.
What happens:
I can get the second form to open but the data from cmbCDC2 does not transfer into combo box on frmAddInmate. I have tried several ways but it doesn't seem to work...It looks like the data that triggered the NotInList Event isn't stored in cmbCDC2. After that is done, how do I sychronize all the new data in the first form for data entry?
here is a portion of the code I have on the open event of frmAddInmate:
lblLogNum.Caption = Forms![frmEdit]![cmbLogNum]
***The above works
Me.cmbCDCadd = Forms![frmEdit]![cmbCDC2]
***this doesn't work
Thanks a million!
This is what I need:
I want that when the Not In List event is triggered for the cmbCDC2 a new form opens (frmAddInmate) to add data. I want the data that was entered in cmbCDC2 from the first form to be entered in the combo box on the second form (cmbCDCadd) to make data entry easier. Then I need that when I exit this form and return to the first form, the first form is updated (requeried?)with the new data and then the new data that was entered is selected cmbCDC2 and the whole form updated.
What happens:
I can get the second form to open but the data from cmbCDC2 does not transfer into combo box on frmAddInmate. I have tried several ways but it doesn't seem to work...It looks like the data that triggered the NotInList Event isn't stored in cmbCDC2. After that is done, how do I sychronize all the new data in the first form for data entry?
here is a portion of the code I have on the open event of frmAddInmate:
lblLogNum.Caption = Forms![frmEdit]![cmbLogNum]
***The above works
Me.cmbCDCadd = Forms![frmEdit]![cmbCDC2]
***this doesn't work
Thanks a million!
Last edited: