Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Database Access / July 2008



Tip: Looking for answers? Try searching our database.

Make local ADO connection with Data source being current databsa

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gert - 16 Jul 2008 15:57 GMT
Hi,
I am using Access and want to make a ADODB connection, but I do not
want to type a path for the Data source -
Instead I just want to refer to "Current Database" ... not "Data
Source = C:\Name.mdb
Is this possible?
William Vaughn (MVP) - 16 Jul 2008 17:58 GMT
IIRC this is an Access feature, not supported from VB or by ADO (COM-based).
I would build up the ConnectionString using the current path.

> Hi,
> I am using Access and want to make a ADODB connection, but I do not
> want to type a path for the Data source -
> Instead I just want to refer to "Current Database" ... not "Data
> Source = C:\Name.mdb
> Is this possible?

Signature

__________________________________________________________________________
William R. Vaughn
President and Founder Beta V Corporation
Author, Mentor, Dad, Grandpa
Microsoft MVP
(425) 556-9205  (Pacific time)
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
____________________________________________________________________________________________

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.