Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact
A1VBCode Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      

Home » Visual Basic (VB 4/5/6) » Database Programming » Need Help Connecting to a Access Database on...


Need Help Connecting to a Access Database on...Expand / Collapse
Author
Message
Posted 7/1/2008 2:12:17 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 7/1/2008 5:22:24 PM
Posts: 1, Visits: 4
I am trying to connect my vB6 program to an internet database. I am using an Access database, and its uploaded on the internet. I have the site.

http://users6.nofeehost.com/SpyderZ/Db/Dbinventory.mdb

The host supports Microsoft Access databases, and I have been trying to piece together a code that allows it to connect for the login process.

The problem is, I can only get the program to work when the database is local, but when its on the internet, I can't seem to get it to connect. I need it to say connected so it can login.

Here is the code I am using:
[code]Private Sub Form_Load()
Dim strconn As String
flag = False
flag2 = False
Set conn = Server("ADODB.Connection")
strconn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & ";Persist Security Info=False"
Server = "http://users6.nofeehost.com/SpyderZ"
Source = "/Db/Dbinventory.mdb"
conn.ConnectionString = strconn
conn.Open
End Sub[/code]

Someone please help me!
Post #25332
Posted 7/1/2008 4:56:54 PM


Forum God

Forum GodForum GodForum GodForum GodForum GodForum GodForum GodForum God

Group: Forum Members
Last Login: Yesterday @ 7:34:31 PM
Posts: 1,465, Visits: 3,404
Welcome to A1vbcode SpyderZ

Have a read here.

Keith

http://www.martin2k.co.uk/forums/

I've been programming with VB for 12 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
Post #25334
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Brian, Peter

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 5:20am