キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Database connectivity toolkit

解決済み
解決策を見る

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

すべてをダウンロード
0 件の賞賛
メッセージ1/15
6,438件の閲覧回数

What do you want to achieve?

 

You say you are able to create a new empty Access file.

0 件の賞賛
メッセージ2/15
6,434件の閲覧回数

I manually created the Access file (which is blank).  I need to edit it and insert data through LabVIEW.

0 件の賞賛
メッセージ3/15
6,422件の閲覧回数
What is your actual table name and columns? Did you create both with Access? It sounds like you are new to databases.
0 件の賞賛
メッセージ4/15
6,397件の閲覧回数

There are several issues here:

 

  1. You said you created the mdb file manually, how did you do that?
  2. What is the structure of the table you are trying to insert data into?
  3. How did you create that table?
  4. What does the connection string to the database look like?

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...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 件の賞賛
メッセージ5/15
6,387件の閲覧回数

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!

0 件の賞賛
メッセージ6/15
6,372件の閲覧回数
An insert will not create a table or the columns.
0 件の賞賛
メッセージ7/15
6,364件の閲覧回数
解決策
受理者 MoAgha

you cannot create a table with the name "table".  that is a keyword.

aputman
メッセージ8/15
6,362件の閲覧回数

I changed the Table title and that seem to have done it.  Thanks!

0 件の賞賛
メッセージ9/15
6,357件の閲覧回数

Have you double-checked the contents of the database? Doing an insert should not on its own accord create a table for you.

 

Mike


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 件の賞賛
メッセージ10/15
6,325件の閲覧回数