Deactivate few fields in the form while inserting a record

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • subashini Thiyagarajan
    New Member
    • Dec 2006
    • 218

    Deactivate few fields in the form while inserting a record

    Hi ,

    In ASP how to deactivate few fields while inserting a record to the database(access ).


    i want to insert a record.e.g having 5 fields.it is not reqired to fill all the fields in a form as per my condition.upon first filed selection(drop down) remaining field should show or deactivate how to doooooooooooooo ooooo?

    As per the dropdown selection we shoud control the text boxes in the form.same time which ever text box in visible those data only we required to take it to database..
  • chathu03j
    New Member
    • Aug 2006
    • 5

    #2
    its so simple u can use the SQL statment UPDATE <table name> set <Field name>=<'value'> , like this u can type the field name and the values...

    Comment

    • subashini Thiyagarajan
      New Member
      • Dec 2006
      • 218

      #3
      Dear,
      thanks for your reply.

      I am aware of update statement my question is not that.update is backend process.what i required is in order to get the input value itself i want to make visible of the fileds in the form.

      those fields suppost to me auotmatic of their visiblity as per the list box selection.

      e.g i have one list box and 10 text boxes in the form.Generally all text boxes are visible.

      as per the drop down selection i want to deactivate few fields those inputs are not necessary to fill.

      i don't want to defaultly deavtivate the text boxes.depends on the selection sometimes 1 and 6th.or some time 7th and 8th like that.


      u got it.still more explanation needed

      Comment

      • karthi84
        Contributor
        • Dec 2006
        • 270

        #4
        hi,
        y can't u do using if condition checking your listbox values.

        Comment

        • subashini Thiyagarajan
          New Member
          • Dec 2006
          • 218

          #5
          how to do? ok i am getting the list box value what code u use to deactivate?

          Generally

          disabled="disab led" is used to deactivate

          how i'll pass the value to the input tag.please explain

          Comment

          • karthi84
            Contributor
            • Dec 2006
            • 270

            #6
            refer to ur thread "list box selections should decide the textbox display" there i have posted the reply which will apply for this also. try it and reply.

            regards.....

            Comment

            • canarias
              New Member
              • Jan 2007
              • 1

              #7
              hi everybody i'm a new guy.....

              Comment

              • karthi84
                Contributor
                • Dec 2006
                • 270

                #8
                Originally posted by canarias
                hi everybody i'm a new guy.....
                welcome canarias,
                to this new world . vbmenu_register ("postmenu_2299 164", true);

                Comment

                Working...