Solved

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

Posted on 2001-08-08
8
263 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
 
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now