Re: Vba Ado Delete Database Records
Yes, it's too simple
#1 You should make sure that there exist "correct" values in the cells. If the cells are locked or hidden then You should use constant text variables instead which will improve the performance.
#2 You should add an appropiate error handling including user friendly error messages. The error handling should also include any ADO generated errors.
#4 Make sure that the connection is closed properly including scenarios where any error may occur.
#5 Your present code imply that the selected value does exist in the DB. If that is not the case the code should give the end users information about it.
#6 You use early binding and therefore make sure that the targeting machines has the referring version or later of the ADO External Library Object. If not then use late binding.
#7 Spend some time in the advanced section here and You will find solutions to most of the above inputs.
Quote
Thanks in advance....
You're welcome