Hi All,
I open 5 tables like so
VB Code:
CurrentDatabaseName = "Qwest" rstQwest.Open "Qwest_Details", connQwest, adOpenKeyset rstQwest2.Open "Qwestname", connQwest, adOpenKeyset CurrentDatabaseName = "Weldspec" rstWeldspec.Open "Weldspec_Details1", connWeldspec, adOpenKeyset, adLockOptimistic rstWeldspec2.Open "Tester_Weldspec", connWeldspec, adOpenKeyset, adLockOptimistic rstWeldspec3.Open "newtable", connWeldspec, adOpenKeyset, adLockOptimistic
and it fails on this line as I have spelt it wrong.
VB Code:
rstWeldspec.Open "Weldspec_Details1", connWeldspec, adOpenKeyset, adLockOptimistic
What I want to be able to do is to print out the table name that has failed. I could have string and set it to the table name before I open each table. But thought there might be a better way of doing this as it is later on that I want show the result.
Thanks
Loftty




Reply With Quote