Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 21st, 2008, 03:44 PM
Registered User
 
Join Date: Feb 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default MS ACCESS, VBA and Configuring a Serial Interface

I am building a Microsoft Windows GUI application using a Microsoft ACCESS form, and VBA. I need to send data from a Microsoft ACCESS table and .txt file to a serial port, with a click of a button on the ACCESS form. I am pulling my hair out on how to go about doing this. Please help.

Thanks

 
Old February 21st, 2008, 05:07 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

I believe there is a communications control that you can use, though I don't recall what it is called.

Just as there is a Common Dialog control you can use to present the Print, Save, Font, (etc.) dialogs—a control that does not show at run-time—I believe there is a similar control for serial communications.

Ultimately, in a Windows environment, Windows owns [u]all</u> I/O devices, and you must get Windows to permit the communications. This sort of thing is done at the driver level, not at the program level. That's why you need some intermediary, like this control I'm trying to remember the details of.

I highly recommend you search down that avenue, and retain such hair as you have left...editThe control I'm thinking of is
C:\WINNT\system32\MSCOMM32.oca, “MSCommLib” (Control Typelib Cache). Also there is
C:\WINNT\system32\MSCOMM32.ocx, the actual MSComm control.

This might be a really tough undertaking in Access. But you can use this control in VB6. Do you have Visual Studio?





Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Access VBA Dateddiff Function SKZ Access VBA 5 November 18th, 2008 08:38 AM
Events with VBA & MS Access hoen VB How-To 0 January 19th, 2006 10:18 PM
MS Access and VBA Error Diahann Access VBA 10 January 7th, 2005 05:46 PM
Emailing from MS Access using vba and outlook katd007 Access VBA 0 July 8th, 2004 12:48 PM
MS Access, VBA code to copy recordset Ivan Classic ASP Databases 1 November 1st, 2003 05:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.