Dear MS Access Expert
Edited Question
I am having a problem with the Built in Access Export Wizard. It will not allow you to export a Query that has a form Reference in the criteria section within the Query Grid.
You can try this. Try to export ( to a text file ) a query that has a form Reference in the criteria section. You will get the Too few parameters error.
Original Questions. I was trying to approach this problem from the VBA side originally. Maybe it will help?
I am executing this code in VBA.
When the query ShawDrum doesn't have the criteria [Forms]![ShawDrumUpload]![Driver] in one of its fields, the export works fine. However, if that criteria is added to the query... I get an error message from the Export Wizard. Too Few Parameters. Expected 1.
How do I solve this error. Should I create a QueryDef and pass the parameters into the querydef and then feed TransferText with the Querydef?
Thanks.
Edited Question
I am having a problem with the Built in Access Export Wizard. It will not allow you to export a Query that has a form Reference in the criteria section within the Query Grid.
You can try this. Try to export ( to a text file ) a query that has a form Reference in the criteria section. You will get the Too few parameters error.
Original Questions. I was trying to approach this problem from the VBA side originally. Maybe it will help?
I am executing this code in VBA.
Code:
DoCmd.TransferText acExportDelim, "ShawDrum Export Specification", "ShawDrum", myDir & "Shaw_Drum.txt", True
When the query ShawDrum doesn't have the criteria [Forms]![ShawDrumUpload]![Driver] in one of its fields, the export works fine. However, if that criteria is added to the query... I get an error message from the Export Wizard. Too Few Parameters. Expected 1.
How do I solve this error. Should I create a QueryDef and pass the parameters into the querydef and then feed TransferText with the Querydef?
Thanks.
Last edited: