>Hi Jon,
>
>Thanks for your reply. I have tried that and it still doesnt work. I put some messageboxes in program1 and I know cArtikey='F*0001' at the point of invoking my application:
> ...
>The messagebox is still saying 'CArtikey'
>
>Im stuck, thanks jon
In my two examples I had used an ampersand, "&", which you seem to have overlooked. The ampersand ("macro substitution") will replace a variable with its values - in places where otherwise, a literal is expected.
HTH,
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)