>>If i run the query in SSMS query the value return is : 16, 35 that is correct.
>>
>>But if i put a messagebox on variable Mybanknr , the value is : () , also i select the cursor Cursorbanknr and make a browse, this one is empty.
Can you show us exactly what the query looks like in SSMS?
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.