SQL to Update Radio Button Field
Last Post 03-09-2010 04:15 PM by mmoney. 2 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
mmoneyUser is Offline
wading in the water
wading in the water
Posts:18
Avatar

--
03-08-2010 04:40 PM

    Greetings All,

    I'm a little stuck on the correct SQL statement to update a field that is based on radio(option) buttons. If the two options of the radio buttons are PREMIUM or ENHANCED, how would I write a sql statement that would allow me to write the selection to a table?

    Thanks so much for looking.

    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    03-09-2010 06:47 AM
    HI, you do it the same way you would any other field. Let's say your SQL table is:

    tblRadio(ID,answer)

    where ID is an auto-generated identifier and answer is an nvarchar(10) to hold value of 'PREMIUM' or 'ENHANCED'.

    In your Dynamic Forms SQL Completion Event, type in your insert statement there:

    insert into tblRadio(answer) values('$(radiofield)')

    but replace the "radiofield" name with the shortname on your form. -- David
    mmoneyUser is Offline
    wading in the water
    wading in the water
    Posts:18
    Avatar

    --
    03-09-2010 04:15 PM

    Thanks!!!



    ---
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi