I am working with ASP VB and Access for the first time, and I have a question about functionality.
Is there any way with ASP VB to check to make sure my query was performed successfully?
In PHP/MySQL, the statement I'm looking for would look something like:
PHP Code:
if(!mysql_query($sql, $link)) {
die("There was an error".mysql_error());
}
else {
echo "Everything went swimmingly";
}
However, I'm not sure if that is even possible in ASP VB/Access, and if it is, I really don't have the first clue how I would write it. The code I'm currently using is:
Code:
set rsImpact = adoCon.Execute(strSQL)
I just don't see how I would be able to put that into an "if...else" statement. Any help would be appreciated.