Click here to Skip to main content
15,893,401 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have two dropdown control (Course_cat, couse)
Cours dd is getting populated from course table using Course_cat ID.
I have one more table having course code. If I select a Course it should load corresponding Course code from course code table.

What I have tried:

Select course, course code from tbl
Where Course_cat =Course_cat.selecteddatavalue
But it is not giving me the code of selected course. My intention is to create an unique ID for the selected Couse using course code
Posted
Updated 2-May-19 20:40pm
Comments
Christian Graus 3-May-19 3:41am    
You keep asking random questions without showing any signs of having used a debugger or tried to fix your problem. Why isn't it giving the value? What you typed isn't code. it's half SQL and half front end. Post your actual code and the errors you get

1 solution

Quote:
How can I get data from SQL table to dropdown datavalue field

Advice: stop combining problems and then search for specific solution that fit your exact combination.
Everything goes to variables/arrays/objects.
You have 2 problems:
- Get data from SQL table to variables/arrays/objects.
- use values in variables/arrays/objects to feed dropdown.
Search internet, you will find tons of solutions for both problems, your job is to glue both solutions together.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900