B
bcap
More dickheadery:
DAO is nowhere a decade ago!
DAO is nowhere a decade ago!
bcap said:More dickheadery:
I disagree.
I find DAO much easier to code and peforms better.
Even after pushing ADO for a few years, Microsoft has given up on it and
gone back to making DAO the default. There has been no work done on ADO
since (I think) 2000.
Access using DAO is a very stable and reliable platform (unlike Aaron).
--
Dave Hargis, Microsoft Access MVP
[email protected] said:Weird. [...]
Thanks for all the comments, helpful or not! Yes, ADO is "better"
than DAO, but there's no budget to replace it. Yes, using various
tricks to link the front and back ends is a good idea, but I've
already done that. Sure, hidden fields on hidden forms are a good
wheeze (I've spent the last six years doing this in ASP.NET!) Where
feasible, I've added error handling but, as I said, there's no budget
to make the whole thing watertight.I now know what the problem is, and it was a sort of error, but a
silent one. The application automates Word but for various reasons,
the reference to Word cannot be static and is set dynamically at start
up and removed during the closing routine:For Each Ref In References
If Ref.Name = "Word" Then References.Remove Ref
Next RefAll I had to do was to change the order of the various operations in
AutoExec - specifially, to make sure that the reference was added
BEFORE the assignment of the global variable.At some point in the future I'll suggest to my client that the code
could do with a serious going-over but, despite them being one of the
most successful companies in the UK, they are unlikely to stump up for
this until they really have to.Thanks allEdward
a a r o n _ k e m p f said:DAO did not get a major revamp... it is merely a new badge.
ADO has been through many incarnations over the past decade.
DAO wasn't included with Windows or Office for 5 years.
I now know what the problem is, and it was a sort of error, but a
silent one. The application automates Word but for various reasons,
the reference to Word cannot be static and is set dynamically at start
up and removed during the closing routine:
34g2000hsh.googlegroups.com
:
There exists and has to my recollection always existed a bug where
global variables are reset on some or all unhandled errors. I do
remember having a similar problem with an error that was handled by
a resume next, many years ago, (Access '97, maybe even Access 2).
Perhaps that was fixed.
How I wrote code years ago is different than how I code today.
That comes from experience gained on using the tools and features of
the language. I seldom use globals any more and pay more attention
to error handlers.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.