I have a form with multiple combo box created during form load, each combo box will have a name starts with "CbErrPM" and series of number.
Say for example if I have to show 3 combo box, my form will be loaded with three combo box with name as CbErrPM1, CbErrPM2 and CbErrPM3.
I am not sure whether all combobox will be present in the form always, sometimes it will be sometimes it will not. But I need value of combobox whenever present and need the value of combobox. Please advise How to proceed.
I tried below but nothing working, please advise how to proceed.
Say for example if I have to show 3 combo box, my form will be loaded with three combo box with name as CbErrPM1, CbErrPM2 and CbErrPM3.
I am not sure whether all combobox will be present in the form always, sometimes it will be sometimes it will not. But I need value of combobox whenever present and need the value of combobox. Please advise How to proceed.
I tried below but nothing working, please advise how to proceed.
Code:
For k = 1 To Errs
Set FN = Form_frmQCFeedbackCorrection.Controls("CbErrPM" & k)
If FN.Name = "CbErrPM" & k Then
If Forms_frmQCFeedbackCorrection.( & FN & ).Value = "" Then
Code:
If Forms("frmQCFeedbackCorrection").Controls(FN).Value = "" Then
Comment