Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2001-08-08
8
Medium Priority
?
298 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

773 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