>Thanks Hilmar,
>
>That's got it working now. I can load up the system and select a choice from the submenu and depending on the type of file which I saved in another form is loaded up correctly.
>
>The only problem now is that it always loads the last file I saved in the other form or the last file whatever type it is at the bottom of my asbdoc.dbf table. I go out of the system and go back in but it seems to save the last cPath and run this file every time. Unless I delete the last one or add another in the table.
>
>Any ideas?
>
>Zaheed
I think you should use the debugger, to see what commands opens the undesired file.
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)