Microsoft
Software
Hardware
Network
Question : Force TransferSpreadsheet to fail on key violation
Right now when I import a spreadsheet using the TransferSpreadsheet function a pop up will appear asking me if I wish to continue in the case of key violations. I do not want to give the user the option of continuing. How can I just show an error message instead of having the prompt appear?
I have tried trapping the error, but this doesn't seem to throw an error unless you choose no on the prompt.
Answer : Force TransferSpreadsheet to fail on key violation
AFAIK you can't ... if you need finer control, you should automate the import (i.e. automate Excel) and examine the data before you import.
Random Solutions
migrating SQL databases to another server and get some weird error messages
Microsoft Access ADP file and Office Service Pack 3 problem
IIS7 won't parse classic ASP / VBScript
Windows 2003 Server with event id 1004 application error for wmiprvse.exe
Better way than separating data tables?
MS Access GetOleDbSchemaTable DATA_TYPES and COLUMN_FLAGS questions
Automatically decline meeting request for a specific meeting on the calendar
Cannot access Linked Server from a workstation
Pivot Chart Grand Total
create a yes no messagebox in asp.net