G
Guest
My Access application imports a fairly large amount of its information from
Microsoft Excel. Two tables in my database will need to be updated with
large amounts of data from Excel, and data already in the tables cannot be
harmed. One of these tables may be updated fairly regularly, and the import
process must be quick, easy, and reliable.
Now, as with most databases, both of these tables contain unique ID's and
foreign keys to parent tables. The users who are inputting data for the
Excel files should not have to know this information, and in many cases,
cannot.
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9,
"tblActualCost", strActualImportPath, True
DoCmd.TransferSpreadsheet TableName:="tblActualCost",
FileName:=strActualImportPath, HasFieldNames:=True
I have tried these commands, but I sometimes wind up with errors complaining
that the autonumber field was left null. Even worse, these errors are then
saved as seperate tables, something that I simply CANNOT have happening in my
application. After all, how are users supposed to be able to go in and
delete junk tables Access has created after I've locked them out of doing so
with an MDE?
What can I do?
Dustin
Microsoft Excel. Two tables in my database will need to be updated with
large amounts of data from Excel, and data already in the tables cannot be
harmed. One of these tables may be updated fairly regularly, and the import
process must be quick, easy, and reliable.
Now, as with most databases, both of these tables contain unique ID's and
foreign keys to parent tables. The users who are inputting data for the
Excel files should not have to know this information, and in many cases,
cannot.
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9,
"tblActualCost", strActualImportPath, True
DoCmd.TransferSpreadsheet TableName:="tblActualCost",
FileName:=strActualImportPath, HasFieldNames:=True
I have tried these commands, but I sometimes wind up with errors complaining
that the autonumber field was left null. Even worse, these errors are then
saved as seperate tables, something that I simply CANNOT have happening in my
application. After all, how are users supposed to be able to go in and
delete junk tables Access has created after I've locked them out of doing so
with an MDE?
What can I do?
Dustin