From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,165 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,152 Views)
I'm using LabVIEW8.0.
0 Kudos
Message 3 of 11
(4,149 Views)
OK try these and see if this helps you.
 
David
0 Kudos
Message 4 of 11
(4,146 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,133 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,130 Views)

David,

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

Regards!

0 Kudos
Message 7 of 11
(4,126 Views)
It DAO is very old for LabView 8.6.1 Smiley Sad
www.elblogroboticodepedro.tk
0 Kudos
Message 8 of 11
(3,342 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
(3,328 Views)
Saved in LV8.2
Message 10 of 11
(3,321 Views)