Time to transfer data in EasyHID


Closed Thread
Results 1 to 21 of 21

Hybrid View

  1. #1
    Join Date
    Feb 2003
    Posts
    432

    Default

    Hi Robert,

    I was thinking about this as I was out driving and realised I hadnt checked what references I had included.

    Microsoft DAO 3.6 Objects Library
    Microsoft ActiveX Data Objects 2.7 library

    You have added MDAC 2.8 which is newer than MDAC 2.7 that I have included but I have just tried with 2.8 and it works fine.

    Make sure you are using the JET4.0 provider not JET3.51

    http://www.devx.com/vb2themax/Tip/18535

    I just changed my code to

    strConn = "Provider=Microsoft.Jet.OLEDB.3.51;Data Source="
    strConn = strConn & "K:\HTML\db\KAT5AV.mdb"
    adoConn.ConnectionString = strConn
    adoConn.Open

    and got the error you are getting.

    http://support.microsoft.com/kb/q238401/

    says that This problem was first corrected in Visual Studio 6.0 Service Pack Service Pack 4

    Service pack available here

    http://msdn.microsoft.com/vstudio/do...6/default.aspx
    Keith

    www.diyha.co.uk
    www.kat5.tv

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172

    Default

    Thanks Keith, tried with them and I still get the error.

    I'm downloading service pack 6 now.

    Robert


    EDIT: Nope, same error, unrecognized database format. Tried with Microsoft ActiveX Data Objects 2.7 library, I also tried inverting the 2 references in case priority was important, same error.
    Attached Images Attached Images  
    Last edited by Demon; - 21st August 2006 at 22:44.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172

    Default

    I put the code when I load the form, is that ok?

    Private Sub Form_Load()
    Dim adoConn As New ADODB.Connection
    Dim adoRS As New ADODB.Recordset

    strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
    strConn = strConn & "E:\EasyHID\Xk1 v2\USBProject\VisualBASIC\Modified code\NR2003.mdb"
    adoConn.ConnectionString = strConn
    adoConn.Open
    End Sub

    Or should I make another subroutine for this?

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  4. #4
    Join Date
    Feb 2003
    Posts
    432

    Default

    Quote Originally Posted by Demon
    I put the code when I load the form, is that ok?

    Private Sub Form_Load()
    Dim adoConn As New ADODB.Connection
    Dim adoRS As New ADODB.Recordset

    strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
    strConn = strConn & "E:\EasyHID\Xk1 v2\USBProject\VisualBASIC\Modified code\NR2003.mdb"
    adoConn.ConnectionString = strConn
    adoConn.Open
    End Sub

    Or should I make another subroutine for this?

    Robert
    Thats exactly where I put it !

    Code:
    Private Sub Form_Load()
        strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
        strConn = strConn & "K:\HTML\db\KAT5AV.mdb"
        adoConn.ConnectionString = strConn
        adoConn.Open
        MSComm1.CommPort = 3
        If MSComm1.PortOpen = False Then MSComm1.PortOpen = True
    End Sub
    Having said that, the one big difference I see is that you declare your adoConn and adoRS within the subroutine therefore they are not global variables and once you leave Form_Load they arent accessable.

    Mine are declared in General Declarations.
    Last edited by Demon; - 4th October 2016 at 17:57.
    Keith

    www.diyha.co.uk
    www.kat5.tv

  5. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172

    Default

    Ok, fixed the Components and the code, still got the same error. Do you have more components or references?

    Robert
    Attached Images Attached Images     
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172

    Default

    I checked in Access and I have version 2000 set by default. 2002 is there but not enabled.

    Robert
    Attached Images Attached Images  
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  7. #7
    Join Date
    Feb 2003
    Posts
    432

    Default

    Quote Originally Posted by Demon
    Ok, fixed the Components and the code, still got the same error. Do you have more components or references?

    Robert
    Just checked, the only other Component is Microsoft Comm Control 6.0 but that is for the serial port so is irrelevant.

    I do have one more reference.... OLE Automation ... maybe that is the problem. c:\windows\system32\stdole2.tlb

    If that doesnt work can you email me a copy of the database and I will see if I can open it.

    keith at diyha dot co dot uk
    Last edited by Demon; - 4th October 2016 at 17:58.
    Keith

    www.diyha.co.uk
    www.kat5.tv

  8. #8
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172

    Default

    Nope, not it, but I did notice one thing while I was checking Access. It says SP3 even though I just ran SP6. I think I screwed up the update.

    When the download says "Where do you want to extract the files?", where do I want it to go? Here?
    E:\Microsoft Office\Office10

    I had extracted to a temporary folder and ran SETUP.

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 05:47
  2. Nokia 3310 display text
    By chai98a in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th August 2007, 04:39
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 03:21
  4. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 15:50
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 29th November 2004, 00:56

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts