06-25-2009 01:38 AM
Hi I use database toolkits .I created tadle as shown below with DB Tools Insert data vi.
a
Name | Marks |
---|---|
kav | 88 |
ani | 56 |
ayy | 90 |
sug | 89 |
jey | 97 |
I want to edit the name ayy and the mark corresponding to the name .can anyone give me a solution for this
Solved! Go to Solution.
06-25-2009 02:10 AM - edited 06-25-2009 02:11 AM
06-25-2009 02:13 AM - edited 06-25-2009 02:13 AM
Hi karpaga,
you should use the update command.
Mike
06-25-2009 02:22 AM
Thanku all
i will try and come back to u
06-25-2009 02:24 AM
06-25-2009 02:41 AM - edited 06-25-2009 02:41 AM
Hi kavi,
use the "DB Tools Execute Query" function with this SQL query:
UPDATE <tablename> SET name="new" WHERE ID=50
You have to close the recordset refnum with the "DB Tools Free object" function.
Mike
06-25-2009 02:56 AM
Hi kavi,
in your case the Update command should be like this:
UPDATE a SET Name="kavi",Marks=101 WHERE Name="ayy"
Mike
06-25-2009 04:22 AM
Hi Mike,
-2147217904
NI_Database_API.lvlib:Conn Execute.vi->Example to Update PhoneNumber Labview MDB (8.6).vi<ERR>. Invalid string: specified field does not exist or contains an unsupported character
I attached the program and the access i used.
06-25-2009 04:36 AM
HI mike,
Im waiting for ur reply
06-25-2009 06:01 AM
Hi kavi,
the Marks value has to be in quotation marks, because it's also a text.
See the attached example.
Mike