11-07-2014 10:43 AM
Hello,
I am using Database connectivity toolkit to create a Microsoft access database. I am new to the toolkit. I have been reading the tutorials online and following the instructions. I created a blank Microsoft Access file with a .mdb extension. I also created a .udl data link through Tools>Create Data Link... in LabView and linked it to the mdb file. My VI code is attached. I get the following error when I run the program (also attached). I am not sure what causes this error. I appreciate your help.
Thanks
Solved! Go to Solution.
11-07-2014 10:48 AM
What do you want to achieve?
You say you are able to create a new empty Access file.
11-07-2014 11:10 AM
I manually created the Access file (which is blank). I need to edit it and insert data through LabVIEW.
11-07-2014 12:00 PM
11-07-2014 12:09 PM
There are several issues here:
I agree with Sir Dennis that you do sound very new to databases. Check out this link for some useful background.
In terms of the error message you are getting, the reason for it is not only unknown, but only knowable with a lot of effort. the reason for this unhappy situation is that the DCT hides the logic that generates the error, but passes error messages back to you unmodified. Consequently, most of the errors you get from the DCT are largely useless.
Mike...
11-07-2014 12:26 PM
Hello Mike and Sir Dennis,
Thanks for the link. I will be reading it. I am new to databases. Here are answers to your questions.
1. I opened MS Access 2013, created a blank database, and saved it as an mdb file.
2. The table is not created. I was trying to get LabVIEW to create the table. The VI I am creating will be testing the performace of some sensors and return a number of values with the date of testing. I need the returned values and date to be added as new rows to the database every time a test is conducted. However I am trying to have LabVIEW create the table the first time a test is conducted.
4. It is actualy a cluster. It has three rows and one column. They are 33,3,and 78. The title is Table. The numbers are arbitrary in the example.
This is the format of the table I am trying to achieve.
Table
1 33
2 3
3 78
Thank you for your help!
11-07-2014 12:36 PM
11-07-2014 12:37 PM
you cannot create a table with the name "table". that is a keyword.
11-07-2014 12:40 PM
I changed the Table title and that seem to have done it. Thanks!
11-07-2014 04:04 PM
Have you double-checked the contents of the database? Doing an insert should not on its own accord create a table for you.
Mike