Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RunCommand acCmdSavedImports 1

Status
Not open for further replies.

annie52

Technical User
Mar 13, 2009
164
0
0
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.
 
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
 
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top