Re: Crosstab query error 3104
- From: ridders <ridders@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 31 Dec 2007 15:56:00 -0800
Hi again
I've now gone thorugh all 250 or so forms / reports & modules & added Option
Explicit wherever it was missing! Thankfully very few compile errors had to
be fixed though there are lots of places where I need to redefine variables
correctly (as in your previous post).
I also found the Editor Options in VB & yes it was already checked - pity it
doesn't work retrospectively!
I have both DAO & ADO references checked but DAO is higher so it is taking
precedence. My understanding was that was the correct order..am I wrong on
this?
"Douglas J. Steele" wrote:
"ridders" <ridders@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message.
news:733108FA-15BB-47AC-B057-FCA1B2E09C6A@xxxxxxxxxxxxxxxx
Hi Doug
Thanks - I inherited the original database & am gradually working through
&
fixing errors. I had wondered if such shortcuts were OK. As they seem to
work
i've never changed them.
Presumably fixing all such issues should make the database faster / more
reliable
More reliable, yes. I doubt it will make any difference in speed (and if it
does, it'll be so slight you'd never notice it).
Second,
"Recordset" exists as an object in more than one library (both DAO and
ADO).
Since you're using DAO, you really should use:
Dim rst As DAO.Recordset, rst2 As DAO.Recordset
Again should this improve the performance of the database?
If it's working, then perhaps you've removed the reference to ADO. If you
were to copy the code into another database where you hadn't deleted the
reference to ADO, you'd find that the code wouldn't work, since ADO is
higher in the order than DAO so takes precedence.
I'm using Access 2003 & don't have a Module tab in Tools ¦ Options.
Can I enforce this in some other way in Access 2003?
Sorry, the name of the tab is Editor in Access 2003 (and you have to be in
the VB Editor when selecting Tools | Options)
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
- Follow-Ups:
- Re: Crosstab query error 3104
- From: Douglas J. Steele
- Re: Crosstab query error 3104
- Prev by Date: Re: beginner, question about date calculations
- Next by Date: Re: Query using Like
- Previous by thread: Re: beginner, question about date calculations
- Next by thread: Re: Crosstab query error 3104
- Index(es):
Relevant Pages
|