First of all, when you are in the VBA IDE, go to Tools>References, and make sure you have a reference to the Microsoft DAO Object Library. Second, make sure that you created and saved a query with the name MyQuery.
Next, when you are in the Export Text Wizard, you can click on Advanced... to...