Adding reference just once

rschopd
04-16-2004, 12:44 PM
Hi,
I have one problem developing system in VB. I'm connecting to database thru

oConn.Open "Driver={Microsoft Access Driver (*.mdb)};" & _
"Dbq=H:\POPS\server\POPS.mdb;" & _
"Uid=;" & _
"Pwd=;"

but everytime I run this file I have to add reference to from the project menu to MS Access object Library and MS activex library. Is there any way I can just hardcode these references so that I don't have to worry about adding them again? Please let me know
Thanks a Bunch

HardCode
04-16-2004, 02:05 PM
Use the Microsoft Jet provider instead. Providers of all kinds can be found at http://www.able-consulting.com/ADO_Conn.htm

Anyway, you only have to reference something once in a VB project, as long as you save the .vbp before closing out VB.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum