04-16-2015 04:18 PM
Access 2007/2010 allows a data type called Attachment, which allows attaching actual documents (even multiple documents) in a field of a database. The database actually contains the documents, not just a link to a document elsewhere.
My question: does anyone know of a way for LabVIEW to programmatically attach/recall documents from an Access attachment field? I found a good piece of code written by Eric_B, but it only shows how to recall the first document attached in a field (there may be many).
Too bad the DB Connectivity Toolkit does not support this. The workaround code that Eric_B wrote is not trivial.
Thanks.
04-16-2015 04:53 PM
04-16-2015 05:01 PM
The drivers I posted in the forum sometime ago supported this process:
https://forums.ni.com/t5/LabVIEW/Extracting-one-column-from-Database/td-p/544341/page/5
Mike...
04-17-2015 08:59 AM
Mike:
I followed the link and took a look at your set of drivers. Nice job. It looks like you encapsulated and simplified a lot of the work. But as a new user, I'd need an example, showing your drivers in use. For example, what is a "Connection string"? I assume that's where the Access DB file name goes, somehow. But without an example, I wouldn't get very far. Do you have some code that could help out? What I'm specifically interested in is attaching files to an Access DB field, and recalling them (all other DB functionality I need to do is covered by the DB connectivity toolkit). I'm sure your drivers could be used to do this, based on your prior message. Thanks.
04-17-2015 09:26 AM
04-17-2015 09:59 AM
Thanks so much Mike. I've read a few of your posts. You have a talent for... calming the reader. More proof I'm a newbie: where do I find your blog?
04-17-2015 10:04 AM