I have no hair left with this issue! I'm simply trying to import data from named ranges in Excel 2003, into tables of the same name in Access 2003. I have found that unless I have the spreadsheet from which I want to import, OPEN, the named ranges cannot be found. I can't even see them trying to manually import the data, unless the spreadsheet is open!
I don't want the spreadsheet open because that causes an instance of Excel to remain...
Search Result
Collapse
6 results in 0.0050 seconds.
Keywords
Members
Tags
-
Get a value in last record inserted of DoCmd.TransferSpreadsheet
I am importing an excel worksheet into an existing access 2000 table using TransferSpreads heet. Im using a timestamp field as well in this table. This is going well, however, once the data is imported I need to find the last record imported and pull the value of a field called Code. Then add that value to another table where Code is the Key Value. This is all one continuous operation in the same sub and executing inline directly after...Code: -
transferspreadsheet not capturing all records in worksheet
My db needs to load xls files that are dropped into a folder by Peoplesoft. The first row contains record count information and the second row contains field headers.
My code is finding the correct file to load, processing the load into a tempory table, then moving and adding two new fields,one today's date, another a calculated filed based on another field to ease other queries.
Problem is that the code only... -
TransferSpreadsheet: why do 'sheets' in the workbook 'misbehave'?
I'm experimenting with getting Access to push stuff in and out of Excel using the following code behind two buttons ...
...Code:Private Sub ExportContacts_Click() 'transfer the table CONTACT to the spreadsheet ContactSpSheet DoCmd.TransferSpreadsheet acExport, , "CONTACT", _ "C:\Users\Owner\Documents\ContactSpSheet" End Sub Private -
TransferSpreadsheet
Is there a way to differenciate between multiple Excel Spreasheets in an Excel Workbook when writing the code to TransferSpreads heet?
When I do the command now, I only have one worksheet.
Example:
Now suppose the workbook had 3 worksheets: "test1", "test2" and "test3"....Code:DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "Test", "c:/test.xls", True
-
no warnings when using transferspreadsheet or text
I am using transfertext and transferspreads heet in VBA to import an excel file (.csv or .xls) into access 2003.
Some of the fields are failing (I am getting an import error file), but I am not getting any warning message. I have explicitly turned on the warnings, but it didn't make a difference. If I manually import the table, the warnings appear ("Microsoft Access was unable to append all the data to the table. The contents...