I have a sql table consisting of dept_name and dept_code.and on the form i have textbox for dept_code and combobox for dept_name.When i select a particular dept_name from the combobox i should get the corrosponding dept_code in the textbox.
kritiohri 0 Newbie Poster
Recommended Answers
Jump to Postuse data binding.
There are many guides or examples on this, but i googled and this is the first result i got.
Jump to Postfirst is what field is your primary key? is it the dept_code or dept_name?
When i select a particular dept_name from the combobox i should get the corrosponding dept_code in the textbox.
Now, what you want is a little bit complicated WHEN your primary is the dept_code.
Why? because …
All 6 Replies
Bandar.M.A 0 Newbie Poster
kritiohri 0 Newbie Poster
Bandar.M.A 0 Newbie Poster
jbrock31 11 Junior Poster in Training
jireh 3 Posting Whiz
Praniya 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.