Re: How to really cancel an asynchronous Connection.Execute

From: Ian Boyd (ian.msnews010_at_avatopia.com)
Date: 03/23/04


Date: Tue, 23 Mar 2004 11:45:03 -0500


> When you cancel an operation, you're asking the engine to undo what you
> asked it to do. If it's an update or other action query it has to roll
back
> the work.

My particular frustrations where with a select statement.

> If it's a long-running operation (and it sounds like it is) there
> is a lot of work to do. It also might be blocked by some other operation
> going on which means it can neither proceed or rollback until it times
out.

It's not blocked; just SQL Server decides to finish trying to run the query,
before it will cancel running the query.



Relevant Pages

  • Re: Return to form if query unmatched
    ... Dim MyRecCount As Long ... If it doesn't pop up a message and set Cancel = True. ... record source of that form. ... If it is a sql then you should create a query with that sql, ...
    (microsoft.public.access.queries)
  • Re: Return to form if query unmatched
    ... The final solution I have gone with is using my original query as datasource ... Dim MyRecCount As Long ... If it doesn't pop up a message and set Cancel = True. ...
    (microsoft.public.access.queries)
  • RE: check qry on form close for null entrys
    ... criteria I just put Datebut it still gives me dates from way back. ... If you are using the query builder, don't put Null for each field in the ... show the MsgBox and not restrict the person from closing. ... cancel the close and present the records will Nulls in the form. ...
    (microsoft.public.access.gettingstarted)
  • RE: check qry on form close for null entrys
    ... If you are using the query builder, don't put Null for each field in the ... Put each Null criteria on a different line. ... show the MsgBox and not restrict the person from closing. ... cancel the close and present the records will Nulls in the form. ...
    (microsoft.public.access.gettingstarted)
  • Re: Return to form if query unmatched
    ... The final solution I have gone with is using my original query as datasource ... Dim MyRecCount As Long ... If it doesn't pop up a message and set Cancel = True. ...
    (microsoft.public.access.queries)