Time to transfer data in EasyHID


Closed Thread
Results 1 to 21 of 21

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    Robert, i guess it's time for you to have a break and relax Hey, there's still 56.2 years remaining now for your project?

    I have some Truck-mechanic problem and i will have to stay here for few days. Most of those pending job are on the test bench. I'm about to begin a 'Easy USB for dummies' short tutorial to be posted here. If i finish this house-bench-cleanning soon, i should have time to do it and post it here this week. I guess it could be handy for few guys here. Well i guess.
    Last edited by mister_e; - 21st August 2006 at 15:19.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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

    Default

    I finally got everything up and running. VB6 is fun once you get into the hang of things, but there's so many tricks, so much flexibility. Programming the PC interface is going to be another project in itself.

    Now I'm getting back in that VB6 tutorial I started a few months ago; I'm at the database access section. I defined a basic database for my application in Access (saved in 2000 format), but I'm getting an error when I try to use it in VB6; something about unknown database format. I figure VB6 can only read an older format like Access97 which probably means having to work in Windows '98 again.

    Looks like I might have to set up that other PC with dual partition after all (Win XP and '98). I've been putting that off for a while now, ugh...

    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!

  3. #3
    Join Date
    Feb 2003
    Posts
    432

    Default

    Quote Originally Posted by Demon
    Now I'm getting back in that VB6 tutorial I started a few months ago; I'm at the database access section. I defined a basic database for my application in Access (saved in 2000 format), but I'm getting an error when I try to use it in VB6; something about unknown database format. I figure VB6 can only read an older format like Access97 which probably means having to work in Windows '98 again.
    Access 2000 works fine with VB6.

    Add in Component "Microsoft ADO Data Control 6.0 (OLEDB)"

    I have the following declarations in my project

    Dim adoConn As New ADODB.Connection
    Dim adoRS As New ADODB.Recordset

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

    Its a couple of years since I wrote that program but I am pretty sure that your problem is the provider. I think Access 2000 needs Jet4 whereas Access97 was Jet 3.5.

    You definately dont need to revert to Win98 as I am running XP.

    I actually have a web front end for the database which I use for entering and editing data, my VB app only reads the database for sending commands out of a Comm port although there is no reason why it could be done the opposite way round with VB receiving data and inseeting records into a database that could then be read on a web browser.

    Any updates you need including service packs for VB6 should be on the Microsoft website.... somewhere!!!!

    HTH
    Last edited by Demon; - 4th October 2016 at 16:57.
    Keith

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

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

    Default

    Thanks much!

    I tried installing Office 97 on Win XP, not a good idea. :lol:

    I'll try your suggestion after I spend some time with my girls.

    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!

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

    Default

    Ooops, missed that statement:

    "Add in Component "Microsoft ADO Data Control 6.0 (OLEDB)""

    I looked for it but I don't have it, at least not spelled that way. Can you tell me what the file name is for that reference? You can see it when you click on the reference. I might have better luck finding it that way.

    Robert
    Last edited by Demon; - 21st August 2006 at 21:00.
    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
    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

  7. #7
    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 21: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!

  8. #8
    Join Date
    Feb 2003
    Posts
    432

    Default

    Quote Originally Posted by Demon
    Ooops, missed that statement:

    "Add in Component "Microsoft ADO Data Control 6.0 (OLEDB)""

    I looked for it but I don't have it, at least not spelled that way. Can you tell me what the file name is for that reference? You can see it when you click on the reference. I might have better luck finding it that way.

    Robert
    Its a COMPONENT not a REFERENCE

    Project>>Components (or CTRL+T)

    C:\Windows\System32\MSADODC.OCX
    Last edited by Demon; - 4th October 2016 at 16:57.
    Keith

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

Similar Threads

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