| | |
Getting path of host machine in VB when a client accesses the exe over the network
![]() |
•
•
Join Date: Oct 2007
Posts: 2
Reputation:
Solved Threads: 0
Getting path of host machine in VB when a client accesses the exe over the network
0
#1 Oct 18th, 2007
Hi,
I am creating a small application which connects to an MS access database.
I am using app to get the path of the mdb. This works fine when I am accessing the exe from my own machine.
When I share the folder containing the exe and access it over the LAN, app looks for the mdb in the client machine. How do I reference the mdb on server?
Following is the code for db connection:
Can anyone please guide me ahead?
Regards,
ss
I am creating a small application which connects to an MS access database.
I am using app to get the path of the mdb. This works fine when I am accessing the exe from my own machine.
When I share the folder containing the exe and access it over the LAN, app looks for the mdb in the client machine. How do I reference the mdb on server?
Following is the code for db connection:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
'Module to connect to the database. Sub db_connect() Dim AccessConnect As String Dim sPath As String sPath = App.Path & "/../MasterDB" AccessConnect = "Driver={Microsoft Access Driver (*.mdb)};" & _ "Dbq=My_Master.mdb;" & _ "DefaultDir=" & sPath & ";" & _ "Uid=;Pwd=test123;" con.ConnectionString = AccessConnect con.Open End Sub
Can anyone please guide me ahead?
Regards,
ss
•
•
Join Date: Oct 2007
Posts: 24
Reputation:
Solved Threads: 0
Re: Getting path of host machine in VB when a client accesses the exe over the network
0
#2 Oct 19th, 2007
•
•
Join Date: Oct 2007
Posts: 2
Reputation:
Solved Threads: 0
Re: Getting path of host machine in VB when a client accesses the exe over the network
0
#3 Oct 19th, 2007
Re: Getting path of host machine in VB when a client accesses the exe over the network
0
#4 Nov 2nd, 2007
Re: Getting path of host machine in VB when a client accesses the exe over the network
0
#5 Nov 5th, 2007
![]() |
Similar Threads
- This is a wierd one! (Windows NT / 2000 / XP)
- System 32 Coming Up at Startup (Viruses, Spyware and other Nasties)
- Zone Alarm Security Alerts. (Viruses, Spyware and other Nasties)
- Networking 2 XP Machines with crossover cable and 2 Realtek Cards (Networking Hardware Configuration)
- How can I delete Hosts: 1159680172 auto.search.msn.com? (Viruses, Spyware and other Nasties)
- HijackThis shows 01 entries - can't remove (Viruses, Spyware and other Nasties)
- Removal of Home Search Assistent (Viruses, Spyware and other Nasties)
- Any XP networking gurus out there? (Networking Hardware Configuration)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Oracle to visual basic
- Next Thread: Displaying data in a form
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis 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 save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





