When I debug, it stops on the Elseif line and highlights me.cboKillRemaining
.
I think this problem is self contained in my code below.
Dim Result As String
Dim Path As String
'Determine path
If (IsNull(Me.cboKillRemaining) Or Me.cboKillRemaining = "No") And Me.txtRemClones > 0 Then
Result = MsgBox("Create " & Me.txtNumofTags & " tags from " & Me.cboGroup & " and leave remaining " & Me.txtRemClones & " clones active?", vbYesNo, "Confirm transplant")
If Result = vbYes Then Path = 1
Else: Path = 4
End If
ElseIf Me.txtRemClones > 0 And Me.cboKillRemaining = "Yes" Then
Result = MsgBox("Create " & Me.txtNumofTags & " tags from " & Me.cboGroup & ", kill remaining " & Me.txtRemClones & ", and inactivate clone group?", vbYesNo, "Confirm transplant")
If Result = vbYes Then Path = 2
Else: Path = 4
End If
Else 'None remaining do not need to ask to kill clones
Result = MsgBox("Create " & Me.txtNumofTags & " tags from " & Me.cboGroup & " and inactivate clone group?", vbYesNo, "Confirm transplant")
If Result = vbYes Then Path = 3
Else: Path = 4
End If
End If