 |
|
|
|
|
|
|
|
Persistent database connection example
|
| The attached files demonstrate how to create a
persistent database connection using a class object encapsulated in a DLL. Using Visual
Basic 5.0 you can run the test project (wholly within VB). You can compile the code or
simply run regsvr32.exe to register the enclosed DLL. To experiment with Outlook, create a
custom form with a single command button named "cb2" and publish the form to a
folder of your choice (usually Personal Forms). Feel free to email me with any questions
or comments. You'll also need to create a 32-bit ODBC Data System Name using the Control
Panel applet. For the attached example, I created one named "testDSN" and
pointed it to the enclosed mdb file location. Good luck! |
Ted Waltman, President
Microsoft Certified Systems Engineer
Microsoft Certified Solutions Developer
Business Technology Consultants, Inc.
4155 East Jewell Ave. Suite 105
Denver, CO 80222-4513
phone: (303) 639-6010
fax: (303) 639-5235
email: twaltman@btci.com
pager: (303) 378-4987
cell: (303) 378-4987
cell email (110 char): 3033784987@mobile.att.net
|
|
Disclaimer: Your use of the information
contained in these pages is at your sole risk. All information
on these pages is provided "as is", without any warranty,
whether express or implied, of its accuracy, completeness,
fitness for a particular purpose, title or non-infringement, and
none of the third-party products or information mentioned in the
work are authored, recommended, supported or guaranteed by
Stephen Bryant or Pro Exchange. OutlookExchange.Com, Stephen Bryant and Pro Exchange shall not be liable for any damages
you may sustain by using this information, whether direct,
indirect, special, incidental or consequential, even if it has
been advised of the possibility of such damages.
Copyright Stephen Bryant 2008