Hi
I have a VBS script that runs a query in my Access DB. Now and again the query raises error to say DB or object is read only and I am sure this is because maybe someone is touching the sharepoint the table in the query is linked to - despite them knowing it should not be touched during process time.
What I would like to do is have some code in VBS script that does basically this:
run the query
if error = 3027 then
run the query again
if error still there go back to run the query again.
But using error trapping how do I use this in combination with a loop to rerun until the read-only error doesn't happen?
Thanks
G
I have a VBS script that runs a query in my Access DB. Now and again the query raises error to say DB or object is read only and I am sure this is because maybe someone is touching the sharepoint the table in the query is linked to - despite them knowing it should not be touched during process time.
What I would like to do is have some code in VBS script that does basically this:
run the query
if error = 3027 then
run the query again
if error still there go back to run the query again.
But using error trapping how do I use this in combination with a loop to rerun until the read-only error doesn't happen?
Thanks
G