Connecting Tech Pros Worldwide Help | Site Map

Deactivate few fields in the form while inserting a record

subashini Thiyagarajan's Avatar
Familiar Sight
 
Join Date: Dec 2006
Posts: 231
#1: Dec 23 '06
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 dooooooooooooooooooo?

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..
Newbie
 
Join Date: Aug 2006
Posts: 5
#2: Dec 29 '06

re: Deactivate few fields in the form while inserting a record


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...
subashini Thiyagarajan's Avatar
Familiar Sight
 
Join Date: Dec 2006
Posts: 231
#3: Jan 2 '07

re: Deactivate few fields in the form while inserting a record


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
Needs Regular Fix
 
Join Date: Dec 2006
Location: chennai
Posts: 270
#4: Jan 2 '07

re: Deactivate few fields in the form while inserting a record


hi,
y can't u do using if condition checking your listbox values.
subashini Thiyagarajan's Avatar
Familiar Sight
 
Join Date: Dec 2006
Posts: 231
#5: Jan 4 '07

re: Deactivate few fields in the form while inserting a record


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

Generally

disabled="disabled" is used to deactivate

how i'll pass the value to the input tag.please explain
Needs Regular Fix
 
Join Date: Dec 2006
Location: chennai
Posts: 270
#6: Jan 4 '07

re: Deactivate few fields in the form while inserting a record


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.....
canarias's Avatar
Newbie
 
Join Date: Jan 2007
Location: istanbul
Posts: 1
#7: Jan 9 '07

re: Deactivate few fields in the form while inserting a record


hi everybody i'm a new guy.....
Needs Regular Fix
 
Join Date: Dec 2006
Location: chennai
Posts: 270
#8: Jan 10 '07

re: Deactivate few fields in the form while inserting a record


Quote:

Originally Posted by canarias

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

welcome canarias,
to this new world . vbmenu_register("postmenu_2299164", true);
Reply