Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to import mesurement data from an instrument into an ACCSS 2007 database via serial USB port

Posted on 2010-08-21
6
Medium Priority
?
695 Views
Last Modified: 2013-12-05
I can transfer mesument data from a mesurement instrument to an ACCSS 2003 database via a serial port using the AXCOM object. The problem is that in the ACCESS 2007 version this object is not recognized and an error occurs. Maybe I'm not using the correct object or method to access data adequate to this version? Is there another object or method that implements this communication? I suspect that the ACCESS 2007 version allredy has an integrated object from the MSCOM library that  implements this function. Is it true an, if so, how can I use it to produce the code? Many thanks. Rui
0
Comment
Question by:razevedo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 85
ID: 33491312
What is "AXCOM"? Do you mean the mscomm32.ocx control, or are you referring to something else?

I can assure you that Access does not have an "integrated object" that will allow you to interact with USB or Serial ports. You can use the API to do so, but it can get to be a very dicey prospect.

Does your instrument come with any programming instructions or examples? Generally those sorts of things would be included with your instrument, or would be available through the support division of the manufacturer.

0
 

Author Comment

by:razevedo
ID: 33492044
Thank you for your kind and quick answers.

In fact, I'm refering to the MSCOMM32.OCX control. axcom is the name that ACCESS uses by default to the control when it is included in a form.

In fact I'm allready using the MSCOMM32.OCX object to transfer data between the instrument and the ACCESS database. The problem stands when I need to use the 2007 version and not the 2003 version.

The instrument is an Yokogawa power analiser and it has no additional software to implement this communication. The supplier was allready contacted and he has no device driver to make possible in an easy way the communication through the serail port. So I had to devellop the code to transfer data from the instrument to the database and it works correctely using the MSCOMM32.OCX object. But when I want to use the ACCESS 2007 database it does not work at all and generates an error because it does not recognize the refferred object.
Do you have a solution for this communication on an ACCESS 2007 databse?

Thank you in advance for your kind attention.

Rui
0
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 33492411
mscomm32.ocx is not now (and never was) certified to work in the Access environment. That you got it to work at all was sheer luck, and as you move forward into new Office versions and Windows platforms, you'll find that the older ActiveX controls don't work as planned (if at all).

In short - you shouldn't be using this control in Access. I know that it worked in earlier versions, but that was just pure luck. If you simply must, then switch platforms to one that is compliant with the control (like VB6) and use it there.

You can try moving the control to the Windows/System32 folder of the machine with 2007 and registering it. This might work, although it's a dodgy solution at best.

Here's a good bit of info on moving away from that control:
http://www.granite.ab.ca/access/serialport.htm
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question