Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Help > DevNet >
Back to Access Developer Network    Comments List
Acdb with ActiveX Controls Upload Images   Link   Email  
Titus Hoover 
Hello
  Where do I go for help to get my database working on my new PC?  I use my db to communicate with a PLC via an Activex Control Library.   All the ActiveX Controls work fine on Excel But not on Access.  Someone suggested that I might have to manually edit the registry.  This happened when I switched to a newer PC.
Any leads would be greatly appreciated.  Thank you
Richard Rost 
Hi Titus. I've moved your post to my Access Developer Network. I don't personally offer consulting and troubleshooting services myself, but maybe one of my other expert Access students will be able to help you.
Richard Rost 
Very strange that the controls will work in Excel but not Access however. Personally I tell people to avoid 3rd party controls like the plague, but as we've seen with Covid, people don't try to avoid the plague that hard either these days. LOL
Titus Hoover 
There is a PortOpen control that opens a handle to the PLC and that works fine but as soon as I run an AreaRead then Access shuts down.
Richard Rost 
I haven't done any work with PLCs since the 90s. LOL. If the controls work with Excel but not Access, try running down my Troubleshooter. Maybe you've got a corrupt ACCDB file or something like that.
Titus Hoover 
I finally got the db working again. I had to rewrite a few lines.  Can someone tell me the difference in the code below?
Public p As New FP_CONNECT
Public plcDataArrayReturned as variant
Public Function connecttoplc() As Boolean
Dim plcDataArray(1) As Long
Dim strError As String
Dim plcResult As Integer
     plcResult = p.PortOpen(0, 1)
    If plcResult <> 0 Then GoTo ErrorHandler
        plcDataArrayReturned = p.ReadBits(0, "R10", 1, strError)              '  This worked on my old PC

        plcDataArrayReturned = p.ReadBits(0, "R" & CStr(10), 1, strError)  '  Now I have to convert the number 10 into a string

        ' Why wouldn't the compiler take "R10" as a string only?

        If strError <> "" Then GoTo ErrorHandler
        t = plcDataArrayReturned(0)
     If t = False Then GoTo notheattreating
   ' Other Code
notheattreating:
'
    Exit Function
ErrorHandler:
'
End Function

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Developer Network.
 

 
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 3/28/2024 9:31:29 AM. PLT: 0s