LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -2147217900

Hi,  I am using the Database Connectivity Toolkit Eval. I am trying to get my data into the database with ms access. However, i get this error.

 

Possible reason(s):
ADO Error: 0x80040E14
Exception occured in Microsoft Office Access Database Engine: Syntax error in INSERT INTO statement. in NI_Database_API.lvlib:Rec Create - Command.vi->NI_Database_API.lvlib:Cmd Execute.vi->NI_Database_API.lvlib:DB Tools Insert Data.vi->try1.vi

 

I have gone into DB Tools Insert Data however it doesnt allow me to take a look at the block diagram. Therefore, I cant locate Cmd Execute.vi. It seems that I have to purchase the toolkit in order to view the vis.

 

Is there any other way that i could solve this problem?

0 Kudos
Message 1 of 8
(4,114 Views)
Purchasing the toolkit will not let you see the block diagram but why would you want to? As the message says, your error is with your INSERT command. Since you did not attach your code, I have no idea what you did wrong. I would suggest you look online for a sql tutorial.
0 Kudos
Message 2 of 8
(4,110 Views)

I understand that the problem lies at the "insert into" part. But I could not find the terminal that lead to this problem. this is part of my VI

0 Kudos
Message 3 of 8
(4,107 Views)
Try naming your table something other than 'table'
0 Kudos
Message 4 of 8
(4,102 Views)

Tried, sir

0 Kudos
Message 5 of 8
(4,098 Views)
You are also inserting numeric arrays into those columns. Did you test this insert with Access itself?
0 Kudos
Message 6 of 8
(4,096 Views)

sorry. what do you mean?

0 Kudos
Message 7 of 8
(4,093 Views)

I checked and with my version of the database toolkit, the block diagram of DB Tools Insert Data is not locked. I don't know why you can't see it. Try again and if you can, put a probe on the output of DB Tools Build Insert Query. That you show you the exact command that is trying to be executed. See if you can do the same insert with Access itself. You have not included the actual db so I have no idea how you designed the table and whether you can actually insert numeric arrays into those columns. Did you design the db?

0 Kudos
Message 8 of 8
(4,066 Views)