Sep 24, 2010 #1 annie52 Technical User Mar 13, 2009 164 US How can I specify the saved import specification that I want to run? I don't want my users to have to pick from all the saved imports. I tried: RunCommand acCmdSavedImports "ImportMilstripOpenHistoryCognos" but that doesn't work.
How can I specify the saved import specification that I want to run? I don't want my users to have to pick from all the saved imports. I tried: RunCommand acCmdSavedImports "ImportMilstripOpenHistoryCognos" but that doesn't work.
Sep 24, 2010 1 #2 traingamer Programmer Jun 18, 2002 3,270 US See the DoCmd.TransferText Method expression.TransferText(TransferType, SpecificationName, TableName, FileName, HasFieldNames, HTMLTableName, CodePage) e.g. Code: DoCmd.TransferText(acImportDelim, "ImportMilstripOpenHistoryCognos", etc. etc.) Greg People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard Upvote 0 Downvote
See the DoCmd.TransferText Method expression.TransferText(TransferType, SpecificationName, TableName, FileName, HasFieldNames, HTMLTableName, CodePage) e.g. Code: DoCmd.TransferText(acImportDelim, "ImportMilstripOpenHistoryCognos", etc. etc.) Greg People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
Sep 24, 2010 Thread starter #3 annie52 Technical User Mar 13, 2009 164 US Here's what I ended up with: DoCmd.RunSavedImportExport "ImportMilstripOpenHistoryCognos" Thanks for the feedback Greg. I haven't used the TransferText or TransferSpreadsheet before so it was good to hear about them! Upvote 0 Downvote
Here's what I ended up with: DoCmd.RunSavedImportExport "ImportMilstripOpenHistoryCognos" Thanks for the feedback Greg. I haven't used the TransferText or TransferSpreadsheet before so it was good to hear about them!