TCP/IP, ADO, and XML are used (Microsoft XML 4.0 must be installed .). It is divided into two parts: server and client. The server can be connected to multiple users at the same time. There are many methods to remotely connect to the access database. I have answered in detail before (see the five methods listed below ), this example belongs to the 3rd methods (no RDS or web server is required ).
-------------------------------------
Several Methods for remotely connecting to the ACCESS database:
1. Create a VPN (Virtual Private Network) so that your computer and host can be connected to the LAN, and then share the folder where the MDB file in the server is located. The ADO connection is as follows:
Oconn. Open "provider = Microsoft. Jet. oledb.4.0; Data Source = \ servername \ databasefolder \ database. mdb; Jet oledb: Database Password = databasepw; persist Security info = false"
2. Place the database on the Web server so that ADO or rdo can be implemented through RDS (Remote Data Service) and IIS:
If odbc dsn is set on the server as mentioned in the above Jave Daxia:
Oconn. Open "provider = MS remote ;"&_
"Remote Server = http: // myservername ;"&_
"Remote provider = msdasql ;"&_
"DSN = advworks ;"&_
"Uid = myusername ;"&_
"Pwd = mypassword"
If you set ole db Provider:
Oconn. Open "provider = MS remote ;"&_
"Remote Server = http: // myservername ;"&_
"Remote provider = Microsoft. Jet. oledb.4.0 ;"&_
"Data Source = c: \ somepath \ mydb. mdb ",_
"Admin ",""
3. Write your own serverProgram, Pass recordset through TCP/IP.
4. Use third-party controls, such as ADO anywhere or udaparts RDB. View Details
5. Use XMLHTTP
--------------------------------------
Method for connecting to SQL server remotely:
Connstr = "provider = sqloledb.1; network library = dbmssocn; persist Security info = true; user id = username; Password = password; initial catalog = remote database name; Data Source = 203.129.92.1"
Appendix: [remote access database call] Remote Access Data Warehouse. rar (, 1.08 K)