From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

combo box

hi,

 

I have added items to a combo box.

 

how can i send those items to the database(ms-access)?

 

tell me how to do this in labview?

 

InAdvance Thanks

 

Regards

Soundarya

 

 

0 Kudos
Message 1 of 10
(3,534 Views)
You can use the Database and Connectivity Toolkit!
0 Kudos
Message 2 of 10
(3,522 Views)
How many threads are you going to create . Please continue here
0 Kudos
Message 3 of 10
(3,518 Views)

hi, I have some list of values in the database like:ate,hal,shop and qc.

 

so i want to update the field value in the database for example "from ate to ni"

 

i have written an update statement, but all the values are getting updated. i want to update only one field when i click a particular value in a combo box

 

can u tell me how to write the sql statement for this?

 

InAdvance Thanks

 

Regards

Soundarya

0 Kudos
Message 4 of 10
(3,481 Views)

Soundarya wrote:

 

can u tell me how to write the sql statement for this?


You must post this to SQL forums?

- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 5 of 10
(3,479 Views)

Hi Soundarya,

can you show what you have done so far? Maybe you can also upload a part of your database.

Did you make a search for "update"?

 

Mike

Message 6 of 10
(3,464 Views)

hi,

 

i will explain u what I want exactly.

 

i have a combo box in my vi. in that i have added items like:shop,qc,qae and sqae.

 

so i want to update that shop, qc,qae and sqae. and i have all these values in my ms-access too.

 

i have used db connectivity tool for updating, but it is updating each value.

 

but my requirement is: whenever i click a particular value in a combox box, only that value has to get updated. how can i do this in labview?

 

Regards

Soundarya

0 Kudos
Message 7 of 10
(3,456 Views)

Hi Soundarya,

you can use an event structure. In the value change event of your combo box, you can read the selected value and build your update query.

 

It should be something like this:

 

UPDATE table SET columnname='new' WHERE columnComboBox='selectedValue'

 

 

Mike

Message 8 of 10
(3,448 Views)

hi,

 

i have done the samething as u said before itself.

 

but my doubt is what is that selected value u have mentioned. i mean how do u get that?

 

InAdvance Thanks

 

Regards

Soundarya

0 Kudos
Message 9 of 10
(3,444 Views)

Hi Soundarya,

please see the attached picture.

 

Mike

Message 10 of 10
(3,436 Views)