|
-
Jul 10th, 2006, 12:21 PM
#1
Thread Starter
Hyperactive Member
Application Path? RESOLVED
Code:
Set cn = New ADODB.Connection 'we've declared it as a ADODB connection lets set it.
cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source= C:\Documents and Settings\Rick\Desktop\~Uni Work~\Poker Buddy\DB1.mdb" 'this is the connection string explained in the notes section.
instead of C:\Documents and Settings\Rick\Desktop\~Uni Work~\Poker Buddy\ i just want App.Path & DB1.mdb
but i keep getting an error not sure where to put all the speech marks. Any help ?
Last edited by Ricky1; Jul 10th, 2006 at 12:29 PM.
-
Jul 10th, 2006, 12:25 PM
#2
Re: Application Path?
"Data Source=" & app.path & "\db1.mdb"
-tg
-
Jul 10th, 2006, 12:28 PM
#3
Re: Application Path?
Oh and they are called Double Quotes, not speech marks
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 10th, 2006, 12:29 PM
#4
Thread Starter
Hyperactive Member
Re: Application Path?
grrrr am sure i tried that. Waste of a thread.
Thanks alot
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|