Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 14th, 2005, 11:18 AM   #1
John07
Newbie
 
Join Date: Jan 2005
Posts: 3
Rep Power: 0 John07 is on a distinguished road
Heres the challange

I have a problem, And need advise as where to start.

I have a visual basic program on computer A
Microsoft access on computer B

On computer B there is a textbox always in focus, that logs data when a value is entered and the enter key is press.

So far very simple.

Now, I need computer A to beable to send keys to that textbox on computer B.

Can anyone point me in the right direction. I was using DDE on a single computer but It turns out these applications MUST be seperated to two computers.

Any input would be much appreciated.
John07 is offline   Reply With Quote
Old Jan 14th, 2005, 8:12 PM   #2
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
Dde

There are numerous ways of communicating between machines, including NetDDE.

However I'd say the best and simplest way to achieve what you want would be to use basic TCP/IP. You can do this in VB by using the built in Winsock control or the API. Specifically you would need to run a server program on the computer with the database that would use DDE to enter the data as you are currently doing, and a remote client that would send keystrokes to the server program over the network connection.

Do a quick google for "VB Winsock Control" or search on PlanetSourceCode
Rory is offline   Reply With Quote
Old Jan 18th, 2005, 9:44 AM   #3
John07
Newbie
 
Join Date: Jan 2005
Posts: 3
Rep Power: 0 John07 is on a distinguished road
Thanks for the feedback.

I was looking up the winsock control, and it seems I need a vb application on both PCs. Is this true?

I was hoping not to modifiy Computer B in anyway.

If I have no choice though, Thats fine.


Thanks again.
John07 is offline   Reply With Quote
Old Jan 21st, 2005, 11:31 AM   #4
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
Yes you will. However you could write computer B's part into the Access database using VBA and the winsock control :-)
Rory is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:01 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC