Hello friends
I find the solution by looking into my code
the code that worked is as
<br />
Set rs = New ADODB.Recordset<br />
rs.Open "select * from employees where Designation='" & cmbodesig.Text & "'", Con, adOpenDynamic, adLockPessimistic<br />
Dim cc, xx, tt As Integer<br />
cc = rs.Fields(16)<br />
xx = rs.Fields(17)<br />
tt = cc + xx<br />
msgbox tt<br />
<br />
Thank you all esp. Ron Beyer and Maciej Los for their involvement into my question
Thank you