Board index » delphi » Object Already Open.......

Object Already Open.......

I have an ADO Dataset pointing to an Access query using FetchingNonBlocking.
When I close a query whilst it is fetching and reopen it (with different
selection criteria) i get an error message - 'Object already open.' and the
query will not open.  I can't seem to trap this and I cannot determin what
is open so I can close it!!!!!  If the fetch completes i don't get this.
Does Vassils BetterAdoDataset stop this from happeneing????

Please help

Jim

 

Re:Object Already Open.......


Quote
> Does Vassils BetterAdoDataset stop this from happeneing????

No. You have to intercept the FetchProgress event and return
adStatusCancel in the Status parameter.

HTH
--
Vassil Nazarov
IT Manager, Sofia Cable SA

Other Threads