Hi
In a code I am trying to run several queries that update tables in my database.
So far I am able to run the queries using
docmd.OpenQuery
but this gives me no way to handle errors, and it also pop up a window asking me if I will allow the update to take place (which I don't want)
I have tried using recordset such as:
set qresult=db.openrecordset("queryname"
but this dosn't seem to work with an update queries.
Does anyone know how to run an update query from code?
Regards
Tombirch
In a code I am trying to run several queries that update tables in my database.
So far I am able to run the queries using
docmd.OpenQuery
but this gives me no way to handle errors, and it also pop up a window asking me if I will allow the update to take place (which I don't want)
I have tried using recordset such as:
set qresult=db.openrecordset("queryname"
but this dosn't seem to work with an update queries.
Does anyone know how to run an update query from code?
Regards
Tombirch