LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MS Access ActiveX

How can I read column headers from an MS Access file using ActiveX?
I'm already reading content from file, now I really need to read the headers.
0 Kudos
Message 1 of 11
(4,862 Views)

I have something that uses LabSQL as a baseline with additonal functions to get the column names from a ADODB._Recordset activex class.

What version of Labview are you using?

David

0 Kudos
Message 2 of 11
(4,849 Views)
I'm using LabVIEW8.0.
0 Kudos
Message 3 of 11
(4,846 Views)
OK try these and see if this helps you.
 
David
0 Kudos
Message 4 of 11
(4,843 Views)

David,

Thanks for your help, but your code is returning me an error (code: -2146824579), and I couldn't found the reason.

I'm using the Acces._Application ActiveX class to read the containing data for a *.mdb file, like at attached VI. Is there, in this class, any way to read column headers?

0 Kudos
Message 5 of 11
(4,830 Views)
Ah you are using DAO and I am using LabSQL from http://jeffreytravis.com/lost/labsql.html. LabSQL uses ADO instead of DAO.
 
Sorry I don't have any DAO vi's apart from those in the ZIP attached which I picked up from NI website, I think.
 
I haven't tested them before this post but I think this will do what you want.
 
David
0 Kudos
Message 6 of 11
(4,827 Views)

David,

Thank you very much! The last post was exactly what I need!

Regards!

0 Kudos
Message 7 of 11
(4,823 Views)
It DAO is very old for LabView 8.6.1 Smiley Sad
www.elblogroboticodepedro.tk
0 Kudos
Message 8 of 11
(4,039 Views)

Sorry, but the lowest version I have here is 8.5.1.

 

Perhaps someone else on the forum can help up-convert these VI's for you.

 

David

Message 9 of 11
(4,025 Views)
Saved in LV8.2
Message 10 of 11
(4,018 Views)