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
ASP.NET - Database Class
SQL Server varbinary(MAX) fields with ASP.Net
SQL ORDER BY Case needed?
CPropertySheet vs. CTabCtrl
How to use Decimal Data Type in VBA code
Excel Date column - autopopulate with today's date or incrementing date (part 2)
Need a SSIS walk through help on downloading an Excel file using a url
Extracting data from AS400 into text format -- Date
How to use "IsNull" with varchar datatype?
Identifying Best Price....