B BrownRecluse New member Local time Today, 07:21 Joined Sep 13, 2007 Messages 2 Sep 14, 2007 #1 Nevermind, I'm trying a new approach... Last edited: Sep 14, 2007
boblarson Smeghead Local time Today, 04:21 Joined Jan 12, 2001 Messages 32,059 Sep 14, 2007 #2 Your syntax is all wrong - DoCmd.TransferSpreadsheet , , "tempTable" & sheetName, fname, True, sheetName Click to expand... You aren't putting the inputs in the right spot. You aren't telling it whether it is an import or export, what Excel version, nowhere do you have assigned the value for sheetName, you don't need the range for the full sheet. The correct syntax is: Code: DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "TableName", "FileName", True
Your syntax is all wrong - DoCmd.TransferSpreadsheet , , "tempTable" & sheetName, fname, True, sheetName Click to expand... You aren't putting the inputs in the right spot. You aren't telling it whether it is an import or export, what Excel version, nowhere do you have assigned the value for sheetName, you don't need the range for the full sheet. The correct syntax is: Code: DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "TableName", "FileName", True
B BrownRecluse New member Local time Today, 07:21 Joined Sep 13, 2007 Messages 2 Sep 14, 2007 #3 Is there any way besides using TransferSpreadsheet to do automatic imports? Thanks again for you help, -Susan Last edited: Sep 14, 2007
Is there any way besides using TransferSpreadsheet to do automatic imports? Thanks again for you help, -Susan
R RoyVidar Registered User. Local time Today, 13:21 Joined Sep 25, 2000 Messages 805 Sep 15, 2007 #4 Check out http://support.microsoft.com/kb/278973 or http://support.microsoft.com/kb/295646/EN-US/