Solved

how to connect to a remote .mdb file in a intranet and also internet

Posted on 2001-08-08
8
272 Views
Last Modified: 2008-03-10
Hi.. all

   how to connect to a remote .mdb file in a intranet and also internet ...

   I am in developing an application and got struck with this problem...

   Thanks in advance..

   Srinu ;-)
0
Comment
Question by:smnssrinivas
8 Comments
 
LVL 15

Expert Comment

by:lyonst
ID: 6363518
Hi,

This appears to be a good article on this subject ..

http://www.njnet.edu.cn/info/ebook/vbweb/ch09.htm

Cheers,

T.
0
 
LVL 14

Expert Comment

by:puranik_p
ID: 6363550
Dim Con
Set Con = Server.CreateObject("ADODB.Connection")

ConStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & yourmdbpath & ";Persist Security Info=False"

Con.Open ConStr

and thats it!
0
 
LVL 3

Expert Comment

by:cmgarnett
ID: 6363571
This site has lots of examples of connection strings that can be used for different purposes.

http://www.able-consulting.com/ADO_Conn.htm
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 6

Expert Comment

by:kahlean
ID: 6363579
what i would suggest is that you create a dsn in your pc that hold the connection to your remote system on the network.

And create the connection just like this

Dim cn As New ADODB.Conection
cn.Open "dsnYourName"

Regards


0
 
LVL 1

Expert Comment

by:loveneesh_bansal
ID: 6363689
Hi

Just few days back i have done the similar sort of project but instead of using mdb i used the sql server.

I pass the ipaddress of the server usernam eand password too to make the connection.


like the following

connMaster.Open "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=" & UserName & ";pwd=" & TrimPassword & ";Initial Catalog=" & Trim(DBName) & ";Data Source=" & Trim(ipaddress)
0
 
LVL 3

Expert Comment

by:modder
ID: 6410209
The smnssrinivas account has been suspended: the e-mail address provided is invalid and therefore smnssrinivas is not getting any notifications, and cannot participate on the site properly. Hopefully he'll contact us about this soon so we can get his account rectified.

Until then I have to assume that smnssrinivas will not be back, which leaves a number of open questions to be taken care of.

Perhaps, participants can agree what should happen with this question. Should someone get the points? Should it be deleted?

modder
Community Support Admin
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7199826
Hi smnssrinivas,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Save as PAQ -- No Refund.

smnssrinivas, Please DO NOT accept this comment as an answer.
EXPERTS: Post a comment if you are certain that an expert deserves credit.  Explain why.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 7213416
Per recommendation, points NOT refunded and question closed.

Netminder
CS Moderator
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question