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
Best way to export Distribution group names, users, and email addresses from Exchange 2003.
How to write a language independent formula using Excel Object Library
Connecting to a db programmatically via File DSN using Visual Basic
ASP form to database
Searching for number range in string
How to generate autonumber value on add new record
SSRS using BIDS in SQL Server 2008
MS Access and DAT files
Move cursor to field using after update event
Automated countdown in outlook calendar?