| | |
VB6 - Locate/Access Database in a Server directory
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Jul 2007
Posts: 113
Reputation:
Solved Threads: 0
Hi everyone,
I am attempting to access a database that is located in a shared server/ directory "K:\". Assuming I don't know where the database is located, how can I programatically tell vb to locate this database by searching all the network server directory?
My database name is called:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
PTS.mdb
Currently I copied the database into my local drive
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
"C:\PTS.mdb"
This is how I'm accessing the database now:
[Code]
Dbpath = "C:\"
DbName = "PTS"
Set Db = OpenDatabase(Dbpath & DbName)
Any input will be greatly appreciated.
Thanks.
tgif
•
•
Join Date: Jul 2007
Posts: 113
Reputation:
Solved Threads: 0
Sorry my previous post wasn't properly formated.
VB6 - Locate/Access Database in a Server directory
Hi everyone,
I am attempting to access a database that is located in a shared server/ directory "K:\". Assuming I don't know where the database is located, how can I programatically tell vb to locate this database by searching all the network server directory?
My database name is called:
Currently I copied the database into my local drive
=> for testing purposes.
This is how I'm accessing the database now:
Any input will be greatly appreciated.
Thanks.
tgif
VB6 - Locate/Access Database in a Server directory
Hi everyone,
I am attempting to access a database that is located in a shared server/ directory "K:\". Assuming I don't know where the database is located, how can I programatically tell vb to locate this database by searching all the network server directory?
My database name is called:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
PTS.mdb
Currently I copied the database into my local drive
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
"C:\PTS.mdb"
This is how I'm accessing the database now:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Dbpath = "C:\" DbName = "PTS" Set Db = OpenDatabase(Dbpath & DbName)
Any input will be greatly appreciated.
Thanks.
tgif
How do you expect the application to open the database without knowing its location. It never happens that application will run without knowing the location of an access database . You have the option of asking the user to specify the database location initially at the start of the application.
Share your Knowledge.
![]() |
Similar Threads
- Difference between Database Server and Application Server (IT Professionals' Lounge)
- How do I make my Access database work with MS SQL Server? (MS Access and FileMaker Pro)
- simultaneous MS Access Database access problem using VB6 program. (Visual Basic 4 / 5 / 6)
- how to retrieve the Microsoft Access DAtabase from the INternet using web services (VB.NET)
- Pls help me regarding to access database in vb6 (Visual Basic 4 / 5 / 6)
- Remote Database server error. (C#)
- Accessing an Access Database using Java (Java)
- Registration and Login scripts using VB and Oledbconnection to Access Database (ASP.NET)
- How can i access Time from Server ? (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Save menu in visual basic
- Next Thread: how to create and use databases in VB
Views: 1580 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp c++ calculator cd cells.find click client code college column component connection copy creat ctrl+f data database datareport date delete dissertations dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver struct subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






