I have a form called frmCCPYT, a combo box called comboCard, and 3 text boxes called txtAMT, txtCHG and txtTOT.
Basically, I have a standalone form which needs to apply a charge to txtAMT, depending on the value of comboCard.
i.e. MasterCard is the first value in the box and is presumably ItemData(0) which needs to add a charge of 1.45% displayed in txtCHG.
ItemData(2) (Maestro) needs to add 2.5%, and
ItemData(3) (Switch) applies no charge.
txtTOT then adds txtAMT & txtCHG.
I've tried various combinations of If, Then Else, and End If, but can't seem to get it working.
Any one got any ideas?
Basically, I have a standalone form which needs to apply a charge to txtAMT, depending on the value of comboCard.
i.e. MasterCard is the first value in the box and is presumably ItemData(0) which needs to add a charge of 1.45% displayed in txtCHG.
ItemData(2) (Maestro) needs to add 2.5%, and
ItemData(3) (Switch) applies no charge.
txtTOT then adds txtAMT & txtCHG.
I've tried various combinations of If, Then Else, and End If, but can't seem to get it working.
Any one got any ideas?