Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I'm using VB in Excel and need to s

Status
Not open for further replies.

CharlesCook

Programmer
May 13, 2002
424
US
I'm using VB in Excel and need to set the path of an ODBC data source. I can see the datasource path in regedit. How can I update the registry entry? CharlesCook.com
ADP - PeopleSoft
ReportSmith - Crystal Reports - SQR - Query
Reporting - Interfaces - Data Mining
 
Thanks for pointing me over to MS. The problem with using the command in the article is it uses one special access user branch of the reg.

But you got me pointed in the right direction. This seems to work for ODBC.

x = "DBQ=C:\x.mdb"

DBEngine.RegisterDatabase "Forecast","Microsoft Access Driver (*.mdb)",True,x

You can read more at:

Thanks again.... CharlesCook.com
ADP - PeopleSoft
ReportSmith - Crystal Reports - SQR - Query
Reporting - Interfaces - Data Mining
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top