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
Schedule to run query and email it...
Update a table based on the FIRST record of a join (mySql)
save datagrid data to table
Passing datagrid data between form fields
access 2007 frontend sql server 2008
Dropdowns in grid view 'edit item template' not working
How do you import outlook express 6 messages into Windows Live Mail and have them in the proper folders?
Cannot use remote executables after I upgraded to R2
Mixed tooltips using AddTool (GetDlgItem (IDC_THIS), IDC_THIS) and AddTool (this, LPSTR_TEXTCALLBACK) how to.
VPN client (Check point Secure client) not able to browse to any website on the machine once connected to the VPN.