At runtime, check (perhaps, with a MessageBox(), or in the debugger) the value of the variable lcFileName.
>I'm sure this question has been answered before, but can anyone tell me why the following command gets a syntax error (unrecognized phrase/keyword) in a method of a class:
>
>copy to (lcfilename) type delimited with tab
>
>Now, this command works in the command window. It also work with "With Blank" instead of 'With Tab"
>
>Bottom line is I want to create a tab delimited text file from a table I've created within a method of a form.
>
>TIA
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)