M
MeSteve
I am writing a vba script to output Access data to a slideshow. I have this
working so far but in an effort to make th ecode reusable I want to break it
into sections and subroutines.
What is the prefered method of passing control from one routine to the other
as far as opening the database. And this is probably the wrong termanology.
I have
Dim DB as DAO.Database
Dim RS as DAO.Recordset
Dim ppObj as PowerPoint.Application
Dim ppPres as PowerPoint.Presentation
in the main routine. When I call a sub, these onjects are not found. Do I
need to redeclare these in each subroutine?
working so far but in an effort to make th ecode reusable I want to break it
into sections and subroutines.
What is the prefered method of passing control from one routine to the other
as far as opening the database. And this is probably the wrong termanology.
I have
Dim DB as DAO.Database
Dim RS as DAO.Recordset
Dim ppObj as PowerPoint.Application
Dim ppPres as PowerPoint.Presentation
in the main routine. When I call a sub, these onjects are not found. Do I
need to redeclare these in each subroutine?