serdaryorulmaz
October 20th, 2001, 02:15 PM
please help me..
i have put material codes in a combobox and added a lable to show the specifications of that chosen material. and i have put a command button. when i chose the material from the combobox i press the command button and show the specification in lable but i am having problem. when i chose the material and pressing the command button the first specification shows up in the label but when i change the material in the combobox and press the enter the new materials specification does not show up but first materials stay there forever..i had written a code for that transfer like that.
If Combo1.DataField = C10 Then
Label3.Caption = 295
End If
If Combo1.DataField = 2 - C15 Then
Label3.Caption = 355
End If
If Combo1.DataField = Ck10 Then
Label3.Caption = 295
End If
If Combo1.DataField = Ck15 Then
Label3.Caption = 355
End If
If Combo1.DataField = 15 - Cr3 Then
Label3.Caption = 355
End If
end sub
if you know what i should to fix it.. please help me...
respects..
Serdar Yorulmaz
i have put material codes in a combobox and added a lable to show the specifications of that chosen material. and i have put a command button. when i chose the material from the combobox i press the command button and show the specification in lable but i am having problem. when i chose the material and pressing the command button the first specification shows up in the label but when i change the material in the combobox and press the enter the new materials specification does not show up but first materials stay there forever..i had written a code for that transfer like that.
If Combo1.DataField = C10 Then
Label3.Caption = 295
End If
If Combo1.DataField = 2 - C15 Then
Label3.Caption = 355
End If
If Combo1.DataField = Ck10 Then
Label3.Caption = 295
End If
If Combo1.DataField = Ck15 Then
Label3.Caption = 355
End If
If Combo1.DataField = 15 - Cr3 Then
Label3.Caption = 355
End If
end sub
if you know what i should to fix it.. please help me...
respects..
Serdar Yorulmaz