BitCounter
Programmer
I have several places in my application where I am connecting to the same database in order to do things like populate a combo-box with data from a particular table. Often this is on the same page/form. How can I create a public function that <b>all forms </b>can access with this connect code? I do have my database defined in the dataenvironment, but I am confused as how to exactly use this. On almost all of my forms I have an ADODC connection, but this connection always is to a different table than the one I need. That's why I am writing actual code in the form to make the other connections, I just don't want to make the connection 3 times when I could really only use it once, then execute a particular SQL to obtain the correct table. <br><br>I hope that this makes some sense! Any help would be greatly appreciated.