Dennis said:
Thank you for all the time that you took!
You're welcome.
All this started when I suggested, to a friend, that "oh just see if
your accounting s/w can export to Excel and I'll re-export the data
into Access for capture and reporting."
I have never had even one hour of programming instruction nor any
training in Access.
So please forgive me for not asking questions as if I knew the
approach to the answer. Typical when one does not know the lingo nor
where to even begin a question - a position that a learned
professional forgets (when they were "new.")
Of course. Those of who hang out in these newsgroups do try to bear
that in mind, but sometimes we can't tell what the questioner's
background and level of experience are. Sometimes it's harder to come
up with a satisfactory answer if the question is specific and technical,
than it is if the OP just describes the general situation and ultimate
goal.
My point about "conversion." As you well know, in Excel if one wants
to "code" in VBA one can, at least, record a macro and build from
that. In Access, no recording is available to provide at least the
objects, methods and properties.
True. I have occasionally missed the ability to record a series of
steps. On the other hand, when I've recorded Excel macros, I've usually
found that the VBA generated is far indeed from what I would have
written if I'd studied the object model and written the procedure from
scratch.
That said, the Macro Design View
does force one to think in steps. The problem is, to the "new," it
is more than a bit overwhelming.
Now see, I find the Excel object model perplexing and hard to work with,
because I'm just a tyro at Excel. The Access object model, to me, is a
breeze. Working with macros, in Access, is very limited because the
macros only support the actions you can perform via the user interface.
In addition, in Access, one must use the Macro Design View to "code"
a macro. Then when one is completed, there is the option to "Convert
that Macro to VBA" I had a problem understanding the "why" of that,
because now I has two processes to accomplish the same goal 1) Access
Macro and 2) VBA code. I mean, which one is better, faster? (I
realize that the VBA method is more adaptable.)
There's no doubt in my mind that coding in VBA is preferable, because
one can work directly with both the data and the objects. It's more
complicated, but more comprehensive and more efficient. Plus, as a
developer, I need to be able to handle errors that may arise, and
there's no error-handling support in macros.
It is interesting that one can get gobs of VBA samples, tools and
help for Excel but not for Access. Me thinks that there are far few
users of Access and/or it is harder for users to part with knowledge.
I have to dispute this. There are enormous quantities of VBA samples
and tools out there. Have you looked at the Northwind and Solutions
sample databases that are distributed with Access? I'll grant you that
there are far fewer templates for Access on the MS Office site than
there are for Word and Excel, and that has more to do with the relative
number of users. And that's probably because unlocking the power of a
relational database system requires more thought about how such systems
work than it takes to create a pretty Word document or a usable
spreadsheet.
But aside from the samples provided by Microsoft, there many, many web
sites with snippets of "how-to" code. You may want to start your search
at The Access Web:
http://www.mvps.org/access/
And there are links on that site to lots of other good sites. I'd also
recommend using Google Groups to search the microsoft.public.access.*
hierarchy for newsgroup postings on topics you're interested in. And
don't forget the non-MS Usenet group, <comp.databases.ms-access> (though
I must warn you, that group has taken a nasty turn recently, as certain
individuals are conducting private vendettas. I don't go there any
more.)
I have asked this the essence of this issue three times
(but in different forms - not forum) in the last few days. What I got
was a few globals and methods to ask even more stupid (to the
learned) questions.
Previous "helpers" strongly stated that it was far easier to manually
change 15 queries and reports that to develop a macro.
And I agree with them, just as I agree with Jennifer that you'd be
better off in the long run *not* creating these 15 separate reports.
However ...
I want to know how the do it smartly.
This is a sentiment I understand completely, so I'm glad I was able to
help.