Important alert: (current site time 7/16/2013 3:12:31 AM EDT)
 

winzip icon

Access ADO/DAO Database via Winsock Control

Email
Submitted on: 6/4/2001 8:40:11 AM
By: Chris Hatton  
Level: Advanced
User Rating: By 109 Users
Compatibility: VB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0, VBA MS Access
Views: 104242
author picture
(About the author)
 
     Heres another good example of using a winsock control to access a ADO database over a network/dialup connection. This project shows how to Add/Delete, Read/Write access with ease. Also I have inbedded authentication against the database via the winsock control. This project gives you the functionally to store and retrieve data remotely and keep track off multi-users online with up to date online and offline status's, into a treeview control. you can create personal folders and use drag drop features to move messages around (remotely). Also allows users to compress the database to keep hundreds of message clean and tidy. also this code shows how to export messages and send internal messages to the server to be export by email, by a internet dialup connection. Now works with Windows NT / Windows 2000. email me if it doesnt work. chris@hatton.com Please Vote....

 

Windows API/Global Declarations:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
'**************************************
'Windows API/Global Declarations for :Access ADO/DAO Database via Winsock Control
'**************************************
heaps
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 6 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

6/5/2001 9:45:24 AMTravell Davis

Excellent Job Chris, Very well done neat, and professional looking. All programmers on the BBS need to definatly check this project out!!!
(If this comment was disrespectful, please report it.)

 
6/6/2001 12:27:24 AMJaWoLtZe

I voted 5/5 for your excellent code!!
(If this comment was disrespectful, please report it.)

 
6/14/2001 10:46:42 PMDoctor Evil

This is one of the nicest GUIs I have seen on PSC for a while. Good job!
(If this comment was disrespectful, please report it.)

 
6/25/2001 4:05:08 PMUltimatum

Fair enough. =) 0x005 globes.
(If this comment was disrespectful, please report it.)

 
7/13/2001 11:46:36 AMKevin Pirkl

I get some errors trying to run the server. Im running VS 6.0 VB full install and get. Line 27: Class MSComctlLib.ImageList of control ImageList1 was not a loaded control class.
Line 53: Class RichTextLib.RichTextBox of control RichTextBox1 was not a loaded control class.
Line 75: Class MSComctlLib.ListView of control LVMsgs was not a loaded control class.

Can someone help?
(If this comment was disrespectful, please report it.)

 
7/13/2001 9:07:38 PMChris Hatton

Kevin,
You may need to install the SP3 or higher, the controls are 6.0 (SP3).
(If this comment was disrespectful, please report it.)

 
7/15/2001 5:14:12 PMDan

Must say ONE OF THE BEST projects on
psc ive seen. Keep it up.
I voted 5/5.
And will e-mail this link to all
programmers I know.

(If this comment was disrespectful, please report it.)

 
7/16/2001 3:07:26 AMTariq Bin Shams

I get some errors while running the server
(If this comment was disrespectful, please report it.)

 
7/16/2001 3:09:38 AMTariq

I am having getting an error while running the server which says "cn As ADODB.Connection" cant find project or library.
Can some one help me.
thanks in advance
redards
tariq
(If this comment was disrespectful, please report it.)

 
7/16/2001 3:38:36 AMChris Hatton

Hi Tariq
You need to download microsoft data access components 2.5 from www.microsoft.com/data or try referencing it with 2.0 / 2.1 that may work.
(If this comment was disrespectful, please report it.)

 
7/22/2001 2:34:14 PMPrashant

Hey Chris, u r genious !!!!!
Keep up the good work !!!!
(If this comment was disrespectful, please report it.)

 
7/22/2001 8:05:10 PMPeter Verburgh

Hello, This is just great !
I've never seen such a complete full working progessional prog here !
I've posted aslo some code on PSC , but you're code & GUI is very very nice!
You deserve more than 5 GLOBES !!

Greetings,

If you are interrested to view data between sockets.. for looking , knowing new protocols by own written applications, i've posted here !
called TCP-IP Datalook V1.3

Greetings,

Hopely i can see some more stuff of you in the future !

Peter Verburgh.
(If this comment was disrespectful, please report it.)

 
9/5/2001 9:24:33 AMTroy

Great job. One thing missing is encryption of the password field. But all in all it is very neat and works great!!!!!
(If this comment was disrespectful, please report it.)

 
10/10/2001 1:01:20 PMJaWoLtZe

Chris, i was just wondering if you can add some features in this project like sending a file attachement to your messenger buddy...nevertheless this code really rocks! Excellent job man!
(If this comment was disrespectful, please report it.)

 
10/24/2001 1:50:11 PMRajesh Lal (HL & GC)

Great work
respect - rajesh
(If this comment was disrespectful, please report it.)

 
2/20/2002 3:52:52 AMTuk

I can't get my eyes out of this GUI, excelent my man, just excelent.
(If this comment was disrespectful, please report it.)

 
3/29/2002 12:23:22 PMJason

Oh Man !@!! This is AWESOME !!!! Hei Buddy you are brilliant and you have done it again .... Another 5 from me
(If this comment was disrespectful, please report it.)

 
9/23/2002 6:25:45 PM

Now that is a well interesting project...just a couple of "On Error Resume Next" thrown in and this code runs on Win2k without probs. A five and thumbs up from me for a great idea & a smart way of getting there!
(If this comment was disrespectful, please report it.)

 
11/3/2002 6:11:56 PM

Nice Work. 5 Globes! Great UI...

(If this comment was disrespectful, please report it.)

 
12/19/2002 2:06:16 AM

Very nice.... excellent

I like your code very much even though your approach is quite complecated, but anyway its working well.

I have a few questions to your sir.

1. Is your code no problem in more than user log-in at the same time?

2. If Pictures are store in database, can access them via winsock?

Sorry for if it bothers you... I'm just interested coz i'm currently developing a program that i want that this feature will be available.

Thank you...

God bless...

Cris




(If this comment was disrespectful, please report it.)

 
1/31/2003 9:14:39 AM

Nice piece of work dude !!!
(If this comment was disrespectful, please report it.)

 
5/7/2003 1:01:09 PM

superb man!! neatest program i hav seen
in recent times..cool!! keep ur good work & do provide us with more jewels like this.
thank u!!!.

(If this comment was disrespectful, please report it.)

 
6/24/2003 5:15:24 AMMasino Sinaga

Chris Hatton, I can't say anything... just...: GREAT, GREAT, and, GREAT CODE! I want to give you 10 globes if any, alas... there are only 5 globes here, so I give you all of them. Keep up good work!
(If this comment was disrespectful, please report it.)

 
9/6/2003 8:44:25 AMThe_Burner

Hey Man , Very Good Job....
Add Send File....

(If this comment was disrespectful, please report it.)

 
12/27/2003 1:21:19 AM

good example
(If this comment was disrespectful, please report it.)

 
1/31/2004 11:09:51 AM

Great project, thanks for your post.
(If this comment was disrespectful, please report it.)

 
10/18/2004 11:31:43 AM

At last i found out a great code
Its one of the hotest code i ever seen.
well great work.
(If this comment was disrespectful, please report it.)

 
1/19/2005 2:18:38 PM

I don't have any criticism, Instead of it I praise your work. May get success in life. I need propoer guidance of viusal bacis. I am want to be the perfect database programmner in Visual Basic. So that I can full the need of the any individual or any organization.
(If this comment was disrespectful, please report it.)

 
8/19/2005 4:54:07 AMGener

when i download your program, then i run it in vb,at first it was ok and running very well but when i stop it and then run again, it has an error or bug.The message says when i run the office messenger "Invalid operation at current state".Why is it so?Can you help me chris? when i first run the office server and office messenger, it run very well but then the next time i run it, the office messenger has now an error.The office server has no problem,my only problem is the office messenger.Can you help me Chris??? Please reply as soon as possible because i like ur program and its really really great program i've ever seen!!!!
(If this comment was disrespectful, please report it.)

 
8/19/2005 5:01:58 AMGener

i download your program chris and its really really great.I've never seen like this,it's so wonderful and really great to use.But can u help me Chris because when i run the office messenger and office server at first,it was ok and running very well.But the next time i run it again, it has now a bug or an error.The office server has no problem when i run it but the office messenger has an error that says "Invalid operation at current state".Why is it so Chris? Please help me and reply to me as soon as possible because i really like your program.
(If this comment was disrespectful, please report it.)

 
2/11/2006 3:12:35 AMMohamed Nagy

i try to run your program on network with domain but it taking long time to login, and nothing is happening i don't know whats wrong!
(If this comment was disrespectful, please report it.)

 
9/23/2007 3:14:03 AMDuong Viet Cuong

Qá là hay , Thank you
(If this comment was disrespectful, please report it.)

 
7/12/2008 5:49:24 AMjuned

Thank you
5 * are also less for you
(If this comment was disrespectful, please report it.)

 
8/31/2012 3:09:29 PMbasil

100 Star for you buddy, very useful job
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.