Hi Guys,
Just wanting some opinions on best method to approach this. I am
working on an Access97 db and we have two forms and an ADO connection
object to contend with.
The desired state is this-
first form has the functionality for the user to choose an MDB file to
connect to, the user does as such, and the ado connection object is
set up and the connection is opened.
secondly, there is a command button on form1 that is supposed to
instantiate an instance of form2 which has code set to run in its on
its Load event. The code that is in this load event requires the ADO
connection object created / set up in the first form.
At the time of this writing the ADO connection object is dimmed in the
first form declarations.
The second form is to load, then run the code (does some reading of
excel workbook data amongst other things), and shows its progress on
its controls (it has a lable being used as a progress bar). Then, when
the process is finished, it should close and unload itself.
The query is then: What is the best way to handle the ADO connection
object and pass it to the form2 object?
In this case I would have preferred to use a class module with events,
but access 97 doesnt support that. I am unable to move the app at this
stage to a newer version of Access, and am wondering if I should just
gut this and start it from scratch. Inheriting things can be so much
fun :-)
Your advice is always appreciated
The Frog
Just wanting some opinions on best method to approach this. I am
working on an Access97 db and we have two forms and an ADO connection
object to contend with.
The desired state is this-
first form has the functionality for the user to choose an MDB file to
connect to, the user does as such, and the ado connection object is
set up and the connection is opened.
secondly, there is a command button on form1 that is supposed to
instantiate an instance of form2 which has code set to run in its on
its Load event. The code that is in this load event requires the ADO
connection object created / set up in the first form.
At the time of this writing the ADO connection object is dimmed in the
first form declarations.
The second form is to load, then run the code (does some reading of
excel workbook data amongst other things), and shows its progress on
its controls (it has a lable being used as a progress bar). Then, when
the process is finished, it should close and unload itself.
The query is then: What is the best way to handle the ADO connection
object and pass it to the form2 object?
In this case I would have preferred to use a class module with events,
but access 97 doesnt support that. I am unable to move the app at this
stage to a newer version of Access, and am wondering if I should just
gut this and start it from scratch. Inheriting things can be so much
fun :-)
Your advice is always appreciated
The Frog
Comment