Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update Web Form Field Using Dropdownlist

Status
Not open for further replies.

thefox149

Technical User
Nov 22, 2004
158
AU
I have a form that is bound to my dataset from my sql server with a relationship across two tables customer and state.
I have a dropdown that has a list of states I would like to update the state field in my form from the value of the dropdownlist and ideas for this access was great for this stuff this is all new



My cat's name is sprinkles
-Ralph Wigam
 
Hey Ralph,

Do you mean you want to filter your dataset based on what is selected from the dropdown list?

If so then you bind the dataset "where state=DropdownList.SelectedItem.value"

Please let us know what you want to do.

j



 
my customers table has the stateID my dropdownlist has the state Text and StateId when someone creats a new customer I want the stateid update from the selection of the dropdownlist I want to do this on a form that is bound to my dataset.

I know how to add the dropdown to the forms itemcollection but how do i get the stateId to read the value from the dropdownbox... when I mean form I don't mean a webform rather the form Control from the tool box

My cat's name is sprinkles
-Ralph Wigam
 
doesn't anyone watch the simpson...my name is not Ralph Wigam

My cat's name is sprinkles
-Ralph Wigam
 
A lot of tippers had very clever signature's from great people ...ralph is great sometimes he and I have the same IQ

My cat's name is sprinkles
-Ralph Wigam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top