Re: ODBC Refresh Interval
- From: "Phil Reynolds" <philr2354@xxxxxxx>
- Date: Fri, 28 Sep 2007 03:42:44 -0500
Thanks, David. One of the biggest (and most frustrating) problems I've had
with the ODBC approach (apart from the inability to lock a record, which
isn't a huge deal most of the time), is that I can't rely on FindFirst! With
a form bound to an ODBC linked table, I'll use FindFirst on the
RecordsetClone object to go to a particular record, and, even though I
always check the NoMatch property, oftentimes my user finds themselves at
the wrong record. MS has said in KB articles that this problem was fixed
with Jet x.y, or Jet y.z, or whatever. But I found that it hasn't gone away.
To work around this problem I implemented a routine which does the
following:
1) Perform a MoveLast on the recordsetclone (which creates a significant
delay, of course; but it seems to help the situation greatly).
2) After executing DoEvents, perform the FindFirst on the RecordsetClone
object.
3) If not NoMatch, then go to the recordsetclone record.
4) Explicitly check the value of the record you're at, to make sure it
actually is the right one.
5) If not in the right record, then requery the form, and go back to step 1.
This seems to have resolved the problem. But it sure is a pain to have to do
this for a simple Go To (and it presents delays in the process).
Have you ever had this problem with FindFirst bringing you to the wrong
record? Any tips/ideas/suggestions?
Thanks.
"David W. Fenton" <XXXusenet@xxxxxxxxxxxxxxxxxxx> wrote in message
news:Xns99B8AD023ECBDf99a49ed1d0c49c5bbb2@xxxxxxxxxxxxxxxxx
"Phil Reynolds" <philr2354@xxxxxxx> wrote in
news:hWmKi.803$4V6.497@xxxxxxxxxxxxxxxxxxxxxxxxxx:
I had heard that ADO was
supposed to be better than ODBC in theory, but that Microsoft
never really brought it to maturity, and that it's still full of
bugs. Not having ever used it, I don't know. But that's what I
heard.
ADO is dead, of course.
MS is now recommending MDB + ODBC for SQL Server back ends.
That brings with it certain problems with Jet which ADP + ADO did
not have (ADPs are now deprecated by MS, though still supported, but
the main selling point was that they bypassed Jet), but ADO brings
its own set of similar problems (it often guesses wrong about what
you want to do, just like Jet does). Usually, Jet + ODBC problems
can be overcome by balancing your work between Jet and the SQL
Server, whereas it's often not so easy to work around ADO's wrong
guesses (from what I've heard -- I never "drank the Kool Aid"
myself, but the people who had the problems were pretty vocal about
them).
--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
.
- Follow-Ups:
- Re: ODBC Refresh Interval
- From: David W. Fenton
- Re: ODBC Refresh Interval
- References:
- Re: ODBC Refresh Interval
- From: Rich P
- Re: ODBC Refresh Interval
- From: Phil Reynolds
- Re: ODBC Refresh Interval
- From: David W. Fenton
- Re: ODBC Refresh Interval
- Prev by Date: Why is the message body of my post being deleted??? This is wierd.
- Next by Date: Re: "Officelinks" Problem on Menu Bar Under Access 2007
- Previous by thread: Re: ODBC Refresh Interval
- Next by thread: Re: ODBC Refresh Interval
- Index(es):
Relevant Pages
|