Hi!!
I'm using a Data Combo object with this code:
Private Sub DataCombo1_LostFocus()
If DataCombo1.BoundText = "GNP" Then
DataCombo1.DataMember = rpGNP
DataCombo1.DataField = Company
ElseIf DataCombo1.BoundText = "SCA" Then
DataCombo1.DataMember = rpSCA
DataCombo1.DataField = Company
ElseIf DataCombo1.BoundText <> "GNP" And DataCombo1.BoundText <> "SCA" Then
DataCombo1.DataMember = rpOthers
DataCombo1.DataField = Company
End If
When I run my program and select a choice from it, i got this message error:
Compile error:
type mismatch
over this sentence:
DataCombo1.DataMember
Somebody please help me!!!!!
Collin79
I'm using a Data Combo object with this code:
Private Sub DataCombo1_LostFocus()
If DataCombo1.BoundText = "GNP" Then
DataCombo1.DataMember = rpGNP
DataCombo1.DataField = Company
ElseIf DataCombo1.BoundText = "SCA" Then
DataCombo1.DataMember = rpSCA
DataCombo1.DataField = Company
ElseIf DataCombo1.BoundText <> "GNP" And DataCombo1.BoundText <> "SCA" Then
DataCombo1.DataMember = rpOthers
DataCombo1.DataField = Company
End If
When I run my program and select a choice from it, i got this message error:
Compile error:
type mismatch
over this sentence:
DataCombo1.DataMember
Somebody please help me!!!!!
Collin79