Hi Gustav,
Then please explain me this posts bellow:
http://www.experts-exchang
http://www.experts-exchang
Best regards,
Viktor
Main Topics
Browse All TopicsHi Experts,
Can anybody give me a working example for data access over internet using ADO through VB6 application?
1. Connection to a remote machine
2. Reading and Writing data from/to database
3. Data Source (ODBC) configuration if needed, etc...
I'm using custom web server:
http://www.pablosoftwareso
Not Microsoft's IIS!
I found over internet a bunch of codes/examples but unfortunately they not working!
I have some code but it gives me an run-time error '8209', Internet Server Error: Object/Module not found. on line ".Open strSQL, adoConn, , , adCmdText"
But I have all references included in my project... :(
Please help me, it's very important!!!
Best regards,
Viktor
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi Gustav,
Then please explain me this posts bellow:
http://www.experts-exchang
http://www.experts-exchang
Best regards,
Viktor
Just to be clear to all what a trying to do:
I have created a small Ms Access 2000 DB in one machine and I want to access and update this DB from another machine over the internet. I want to use ODBC connection with DSN/ADO.
My machine will access this DB through a VB program to update/add/modify/view and so on. It's sort of like a client/server application.
How can I do this in the simplest way?
Can you please help me,
Viktor
> please explain me this posts bellow
These posts recommend to create a web service to reach the data. That is a possible option not related to neither an ODBC nor ADO remote connection.
> sort of like a client/server application.
No. An Access MDB file is just a file.
> How can I do this in the simplest way?
Either build a web service as suggested in the links, or - as you are familiar with ODBC - move the database to a database server engine like MySQL or SQL Server Express (both free to obtain and use). These are easily reached via the Internet.
/gustav
To Badotz:
I wish to make a little project like http://uptime-project.net/
To mention I can do this over ASP to pass data between MS Access database and my VB6 application but then I must to load, auto-fill forms in hidden IE control in my app, etc...
I thought that it must be an easiest way to do this trough IIS and MDB, Am I correct?!
Sorry for my bad English! :-)
Thank you in advance,
Viktor
P.S. Can anybody provide me a little VB6 project (Read, Write to MS Access database trough internet)?
You may not like it, but as I wrote:
> An Access MDB is to be connected via a LAN or locally, not via HTTP.
As you seem to have the file available locally:
> http://192.168.0.1
just establish a net share (network drive or network connection) to that machine and you are done. No IIS, no ODBC, just a linked mdb.
/gustav
To Badotz:
Yes I know that the "VB6 can connect directly to an .MDB file", I'm using ADO and DAO a few years now but I always developing applications for local usage or over the network (LAN) thats working like a charm!
But not over internet!
Can you give me some kind of snippet, sample, source for that!
Best regards,
Viktor
To cactus_data:
"just establish a net share (network drive or network connection) to that machine and you are done. No IIS, no ODBC, just a linked mdb."
Yes I know that, but then every client will see my MS Access database file and I can not go each of them to set up the network drive, thats is the reason to connect database over internet with VB6 app...!
Client app.========internet======
I abandoned VB6 years ago, but I seem to remember it had database capabilities built-in. At least it could connect to Access via ADODB and a connection string.
You said
>>
Yes I know that, but then every client will see my MS Access database file and I can not go each of them to set up the network drive, thats is the reason to connect database over internet with VB6 app...!
When you say "client" do you mean computers not physically present at your site, like remote users? If so, then an internet solution might make sense. Please clarify:
Q. Are all of the computers using this app on the same network?
A. (your response)
Q. Will some of the computers using this app not have access to your network?
A. (your response)
To Badotz:
Thank you for your quick response!!! :)
Q. Are all of the computers using this app on the same network?
A. Yes (but without ODBC, using direct connection to MS Access database file)
Q. Will some of the computers using this app not have access to your network?
A. Yes
About the project (in more details...):
1. The Web server and the Access database are on the same machine and on the same private network!
2. As for the Web server, I'm using this one (fully compatible with ASP): http://www.pablosoftwareso
3. So, now I'm gonna let you know how I want my project to work:
In order for you to understand what I want the most easiest way: take it as if it was a little addresse book (database with names, addresses, cities, phone numbers, etc.), located on my Web server in MS Access database, but if I, for an example, travel away and I'm not around my local network, I want to be able to connect through my VB6 application to this database over the internet and to read, write, update and delete some data from it.
Best regards,
Viktor
A web application must do all of the CRUD on the server, so you will have to use ASP (I use JavaScript on the server) or Asp.Net or PHP or Perl or some other server-side language.
Since there *can* be a client piece to this puzzle, you may not need your VB6 app for this, just a browser. (BTW: this is how I would do it).
A web service exposes public methods, and you can interact with it; this might be your approach.
> Is there any chance to connect VB6 application directly
> to MS Access 2000 database through internet?!
Not in a reliable way, and this answer does not change even if you ask three or four times.
Please read the previous postings from the first one for the reason behind this and your alternatives.
/gustav
NetDrive is neat - I have it running myself - however it is nothing more than a wrapped FTP transfer, which means that it will read or write the full database file. Thus, if you update or append just one record in a table, the full database file will be uploaded. This will only be useful in some very special cases. So be careful.
/gustav
Unfortunately I do not see any alternatives just a dry answers and it's going around and around!
I need some example code to direct access connection over internet, I do not want to use any ASP or PHP with MySQL, just a VB6 app., access database and a web server nothing else!
But I can not see any of these here or as alternatives!
I seeking for some clear code or less a code snipplet!
Best regards,
Viktor
I found a solution!!!! :-) And it's working!!! The article below helped me out!
http://www.experts-exchang
Converted MS Access database to MySQL and it's working trough internet from my vb6 app.!
Now I am very happy!!! :-)
Tank you for your time!
Best regards,
Viktor
All cactus_data is saying is that what you "discovered" had already been mentioned in his post http:#a25106134 (the 5th reply to your question).
Business Accounts
Answer for Membership
by: cactus_dataPosted on 2009-08-15 at 02:57:31ID: 25104714
You can't do this. An Access MDB is to be connected via a LAN or locally, not via HTTP.
/gustav